// ----------------------------------------------------------------------
// Include files
// ----------------------------------------------------------------------

// ----------------------------------------------------------------------
// Struct/Union Types and define
// ----------------------------------------------------------------------

// ----------------------------------------------------------------------
// Static Global Data section variables
// ----------------------------------------------------------------------

//----------------------------------------------------------------------
// Front Gamma table
// ----------------------------------------------------------------------
#if defined(__USE_MDIN_i510__) || defined(__USE_MDIN_i540__) || defined(__USE_MDIN_i550__) 	// i510, i540, i550
#if __USE_EXTENSION_BYGAMMA__==2
ROMDATA BYTE gamma256_value_table[16][256] = 
{
	
	{
	0,	1,	2,	3,	4,	5,	6,	7,	8,	9,	10,	11,	12,	13,	14,	15,	
	16,	17,	18,	19,	20,	21,	22,	23,	24,	25,	26,	27,	28,	29,	30,	31,	
	32,	33,	34,	35,	36,	37,	38,	39,	40,	41,	42,	43,	44,	45,	46,	47,	
	48,	49,	50,	51,	52,	53,	54,	55,	56,	57,	58,	59,	60,	61,	62,	63,	
	64,	65,	66,	67,	68,	69,	70,	71,	72,	73,	74,	75,	76,	77,	78,	79,	
	80,	81,	82,	83,	84,	85,	86,	87,	88,	89,	90,	91,	92,	93,	94,	95,	
	96,	97,	98,	99,	100,	101,	102,	103,	104,	105,	106,	107,	108,	109,	110,	111,	
	112,	113,	114,	115,	116,	117,	118,	119,	120,	121,	122,	123,	124,	125,	126,	127,			
	128,	129,	130,	131,	132,	133,	134,	135,	136,	137,	138,	139,	140,	141,	142,	143,			
	144,	145,	146,	147,	148,	149,	150,	151,	152,	153,	154,	155,	156,	157,	158,	159,			
	160,	161,	162,	163,	164,	165,	166,	167,	168,	169,	170,	171,	172,	173,	174,	175,			
	176,	177,	178,	179,	180,	181,	182,	183,	184,	185,	186,	187,	188,	189,	190,	191,			
	192,	193,	194,	195,	196,	197,	198,	199,	200,	201,	202,	203,	204,	205,	206,	207,		
	208,	209,	210,	211,	212,	213,	214,	215,	216,	217,	218,	219,	220,	221,	222,	223,			
	224,	225,	226,	227,	228,	229,	230,	231,	232,	233,	234,	235,	236,	237,	238,	239,			
	240,	241,	242,	243,	244,	245,	246,	247,	248,	249,	250,	251,	252,	253,	254,	255,			
	}	,	// gamma bypass - 1.0 
	{
	0	,1		,2		,3		,4		,5		,6		,7		,
	8	,9		,10		,11		,12		,13		,14		,15		,
	16	,17		,18		,19		,20		,21		,22		,23		,
	24	,25		,26		,27		,28		,29		,30		,31		,
	32	,33		,34		,35		,36		,37		,38		,39		,
	40	,41		,42		,43		,44		,45		,46		,47		,
	48	,49		,50		,51		,52		,53		,54		,55		,
	56	,57		,58		,59		,60		,61		,62		,63		,
	64	,65		,66		,67		,68		,69		,70		,71		,
	72	,73		,74		,75		,76		,77		,78		,79		,
	80	,81		,82		,83		,84		,85		,86		,87		,
	88	,89		,90		,91		,92		,93		,94		,95		,
	96	,97		,98		,99		,100		,101		,102		,103		,
	104,	105		,106		,107		,108		,109		,110		,111		,
	112	,113	,114	,115	,116	,117	,118	,119	,
	120	,121	,122	,123	,124	,125	,126	,127	,
	128	,129	,130	,131	,132	,133	,134	,135	,
	136	,137	,138	,139	,140	,141	,142	,143	,
	144	,145	,146	,147	,148	,149	,150	,151	,
	152	,153	,154	,155	,156	,157	,158	,159	,
	160	,161	,162	,163	,164	,165	,166	,167	,
	168	,169	,170	,171	,172	,173	,174	,175	,
	176	,177	,178	,179	,180	,181	,182	,183	,
	184	,185	,186	,187	,188	,189	,190	,191	,
	192	,193	,194	,195	,196	,197	,198	,199	,
	200	,201	,202	,203	,204	,205	,206	,207	,
	208	,209	,210	,211	,212	,213	,214	,215	,
	216	,217	,218	,219	,220	,221	,222	,223	,
	224	,225	,226	,227	,228	,229	,230	,231	,
	232	,233	,234	,235	,236	,237	,238	,239	,
	240	,241	,242	,243	,244	,245	,246	,247	,
	248	,249	,250	,251	,252	,253	,254	,255
	}	,	//0.95 - 1
	{
	0,	0,	0,	0,	0,	0,	0,	0,	1,	1,	1,	1,	1,	1,	1,	1,	
	2,	2,	2,	2,	2,	2,	2,	2,	3,	3,	4,	5,	6,	6,	7,	7,	
	8,	8,	9,	10,	11,	11,	12,	12,	13,	13,	14,	15,	16,	16,	17,	17,	
	18,	18,	19,	19,	20,	21,	22,	22,	23,	23,	24,	24,	25,	25,	26,	27,	
	28,	28,	29,	29,	30,	30,	31,	31,	32,	32,	33,	33,	34,	35,	36,	36,	
	37,	37,	38,	38,	39,	39,	40,	40,	41,	41,	42,	43,	44,	44,	45,	45,	
	46,	46,	47,	47,	48,	48,	49,	49,	50,	50,	51,	52,	53,	53,	54,	54,	
	55,	55,	56,	56,	57,	57,	58,	58,	59,	59,	60,	60,	61,	61,	62,	63,	
	64,	65,	66,	67,	68,	69,	70,	71,	72,	73,	74,	75,	76,	78,	79,	80,	
	81,	82,	83,	84,	85,	86,	87,	88,	89,	90,	91,	92,	93,	95,	96,	97,	
	98,	99,	100,	101,	102,	103,	104,	105,	106,	107,	108,	109,	110,	111,	112,	113,	
	114,	115,	116,	117,	118,	119,	120,	121,	122,	124,	125,	126,	127,	128,	129,	130,	
	131,	133,	135,	137,	139,	141,	143,	145,	147,	149,	151,	153,	155,	157,	159,	161,	
	163,	165,	167,	169,	171,	173,	175,	177,	179,	181,	183,	185,	187,	188,	190,	192,	
	194,	196,	198,	200,	202,	204,	206,	208,	210,	212,	214,	216,	218,	220,	222,	223,	
	225,	227,	229,	231,	233,	235,	237,	239,	241,	243,	245,	246,	248,	250,	252,	254,
	}	,	//0.9 - 2
	{
	0,	0,	0,	0,	0,	0,	0,	0,	1,	1,	1,	1,	1,	1,	1,	1,	
	2,	2,	2,	2,	2,	2,	2,	2,	3,	3,	4,	5,	6,	6,	7,	7,	
	8,	8,	9,	10,	11,	11,	12,	12,	13,	13,	14,	15,	16,	16,	17,	17,	
	18,	18,	19,	19,	20,	21,	22,	22,	23,	23,	24,	24,	25,	25,	26,	27,	
	28,	28,	29,	29,	30,	30,	31,	31,	32,	32,	33,	33,	34,	35,	36,	36,	
	37,	37,	38,	38,	39,	39,	40,	40,	41,	41,	42,	43,	44,	44,	45,	45,	
	46,	46,	47,	47,	48,	48,	49,	49,	50,	50,	51,	52,	53,	53,	54,	54,	
	55,	55,	56,	56,	57,	57,	58,	58,	59,	59,	60,	60,	61,	61,	62,	63,	
	64,	65,	66,	67,	68,	69,	70,	71,	72,	73,	74,	75,	76,	78,	79,	80,	
	81,	82,	83,	84,	85,	86,	87,	88,	89,	90,	91,	92,	93,	95,	96,	97,	
	98,	99,	100,	101,	102,	103,	104,	105,	106,	107,	108,	109,	110,	111,	112,	113,	
	114,	115,	116,	117,	118,	119,	120,	121,	122,	124,	125,	126,	127,	128,	129,	130,	
	131,	133,	135,	137,	139,	141,	143,	145,	147,	149,	151,	153,	155,	157,	159,	161,	
	163,	165,	167,	169,	171,	173,	175,	177,	179,	181,	183,	185,	187,	188,	190,	192,	
	194,	196,	198,	200,	202,	204,	206,	208,	210,	212,	214,	216,	218,	220,	222,	223,	
	225,	227,	229,	231,	233,	235,	237,	239,	241,	243,	245,	246,	248,	250,	252,	254,
	}	,	//0.85 - 3(copy 0.90)
	{
	0,	0,	0,	0,	0,	1,	1,	1,	1,	1,	2,	2,	2,	2,	2,	3,	
	3,	4,	5,	5,	6,	7,	8,	8,	9,	10,	11,	11,	12,	13,	14,	14,	
	15,	16,	17,	17,	18,	19,	20,	20,	21,	21,	22,	23,	24,	24,	25,	26,	
	27,	27,	28,	28,	29,	30,	31,	31,	32,	32,	33,	34,	35,	35,	36,	36,	
	37,	37,	38,	39,	40,	40,	41,	41,	42,	42,	43,	44,	45,	45,	46,	46,	
	47,	47,	48,	49,	50,	50,	51,	51,	52,	52,	53,	53,	54,	55,	56,	56,	
	57,	57,	58,	58,	59,	59,	60,	60,	61,	62,	63,	63,	64,	64,	65,	65,	
	66,	66,	67,	67,	68,	68,	69,	70,	71,	71,	72,	72,	73,	73,	74,	74,	
	75,	76,	77,	78,	79,	81,	82,	83,	84,	85,	86,	87,	88,	89,	90,	91,	
	92,	93,	95,	96,	97,	98,	99,	100,	101,	102,	103,	104,	105,	106,	107,	108,	
	109,	110,	111,	112,	113,	114,	115,	116,	117,	118,	119,	120,	121,	122,	123,	124,	
	125,	126,	127,	128,	129,	130,	131,	132,	133,	134,	135,	136,	137,	138,	139,	140,	
	141,	143,	145,	147,	149,	151,	152,	154,	156,	158,	160,	162,	164,	166,	168,	169,	
	171,	173,	175,	177,	179,	180,	182,	184,	186,	188,	190,	191,	193,	195,	197,	199,	
	200,	202,	204,	206,	207,	209,	211,	213,	215,	216,	218,	220,	222,	223,	225,	227,	
	229,	230,	232,	234,	235,	237,	239,	241,	242,	244,	246,	247,	249,	251,	252,	254,	
	}	,	//0.8 - 4
	{
	0,	0,	0,	0,	0,	1,	1,	1,	1,	1,	2,	2,	2,	2,	2,	3,	
	3,	4,	5,	5,	6,	7,	8,	8,	9,	10,	11,	11,	12,	13,	14,	14,	
	15,	16,	17,	17,	18,	19,	20,	20,	21,	21,	22,	23,	24,	24,	25,	26,	
	27,	27,	28,	28,	29,	30,	31,	31,	32,	32,	33,	34,	35,	35,	36,	36,	
	37,	37,	38,	39,	40,	40,	41,	41,	42,	42,	43,	44,	45,	45,	46,	46,	
	47,	47,	48,	49,	50,	50,	51,	51,	52,	52,	53,	53,	54,	55,	56,	56,	
	57,	57,	58,	58,	59,	59,	60,	60,	61,	62,	63,	63,	64,	64,	65,	65,	
	66,	66,	67,	67,	68,	68,	69,	70,	71,	71,	72,	72,	73,	73,	74,	74,	
	75,	76,	77,	78,	79,	81,	82,	83,	84,	85,	86,	87,	88,	89,	90,	91,	
	92,	93,	95,	96,	97,	98,	99,	100,	101,	102,	103,	104,	105,	106,	107,	108,	
	109,	110,	111,	112,	113,	114,	115,	116,	117,	118,	119,	120,	121,	122,	123,	124,	
	125,	126,	127,	128,	129,	130,	131,	132,	133,	134,	135,	136,	137,	138,	139,	140,	
	141,	143,	145,	147,	149,	151,	152,	154,	156,	158,	160,	162,	164,	166,	168,	169,	
	171,	173,	175,	177,	179,	180,	182,	184,	186,	188,	190,	191,	193,	195,	197,	199,	
	200,	202,	204,	206,	207,	209,	211,	213,	215,	216,	218,	220,	222,	223,	225,	227,	
	229,	230,	232,	234,	235,	237,	239,	241,	242,	244,	246,	247,	249,	251,	252,	254,	
	}	,	//0.75 - 5(copy 0.8)
	{
	0,	0,	0,	1,	1,	1,	2,	2,	2,	3,	4,	5,	6,	7,	8,	9,	
	10,	11,	12,	13,	14,	15,	16,	17,	18,	18,	19,	20,	21,	22,	23,	24,	
	25,	25,	26,	27,	28,	29,	30,	30,	31,	32,	33,	33,	34,	35,	36,	36,	
	37,	38,	39,	39,	40,	41,	42,	42,	43,	44,	45,	45,	46,	47,	48,	48,	
	49,	49,	50,	51,	52,	52,	53,	53,	54,	55,	56,	56,	57,	57,	58,	59,	
	60,	60,	61,	61,	62,	62,	63,	64,	65,	65,	66,	66,	67,	67,	68,	69,	
	70,	70,	71,	71,	72,	72,	73,	73,	74,	75,	76,	76,	77,	77,	78,	78,	
	79,	79,	80,	80,	81,	82,	83,	83,	84,	84,	85,	85,	86,	86,	87,	87,	
	88,	89,	90,	92,	93,	94,	95,	96,	97,	98,	99,	100,	101,	102,	103,	104,	
	105,	107,	108,	109,	110,	111,	112,	113,	114,	115,	116,	117,	118,	119,	120,	121,	
	122,	123,	124,	125,	126,	127,	128,	129,	130,	131,	131,	132,	133,	134,	135,	136,	
	137,	138,	139,	140,	141,	142,	143,	144,	145,	146,	147,	147,	148,	149,	150,	151,	
	152,	154,	156,	157,	159,	161,	163,	165,	166,	168,	170,	172,	173,	175,	177,	178,	
	180,	182,	183,	185,	187,	189,	190,	192,	194,	195,	197,	198,	200,	202,	203,	205,	
	207,	208,	210,	211,	213,	215,	216,	218,	219,	221,	222,	224,	225,	227,	229,	230,	
	232,	233,	235,	236,	238,	239,	241,	242,	244,	245,	247,	248,	250,	251,	253,	254,	
	}	,	//0.7 - 6
	{
	0,	0,	0,	1,	1,	1,	2,	2,	2,	3,	4,	5,	6,	7,	8,	9,	
	10,	11,	12,	13,	14,	15,	16,	17,	18,	18,	19,	20,	21,	22,	23,	24,	
	25,	25,	26,	27,	28,	29,	30,	30,	31,	32,	33,	33,	34,	35,	36,	36,	
	37,	38,	39,	39,	40,	41,	42,	42,	43,	44,	45,	45,	46,	47,	48,	48,	
	49,	49,	50,	51,	52,	52,	53,	53,	54,	55,	56,	56,	57,	57,	58,	59,	
	60,	60,	61,	61,	62,	62,	63,	64,	65,	65,	66,	66,	67,	67,	68,	69,	
	70,	70,	71,	71,	72,	72,	73,	73,	74,	75,	76,	76,	77,	77,	78,	78,	
	79,	79,	80,	80,	81,	82,	83,	83,	84,	84,	85,	85,	86,	86,	87,	87,	
	88,	89,	90,	92,	93,	94,	95,	96,	97,	98,	99,	100,	101,	102,	103,	104,	
	105,	107,	108,	109,	110,	111,	112,	113,	114,	115,	116,	117,	118,	119,	120,	121,	
	122,	123,	124,	125,	126,	127,	128,	129,	130,	131,	131,	132,	133,	134,	135,	136,	
	137,	138,	139,	140,	141,	142,	143,	144,	145,	146,	147,	147,	148,	149,	150,	151,	
	152,	154,	156,	157,	159,	161,	163,	165,	166,	168,	170,	172,	173,	175,	177,	178,	
	180,	182,	183,	185,	187,	189,	190,	192,	194,	195,	197,	198,	200,	202,	203,	205,	
	207,	208,	210,	211,	213,	215,	216,	218,	219,	221,	222,	224,	225,	227,	229,	230,	
	232,	233,	235,	236,	238,	239,	241,	242,	244,	245,	247,	248,	250,	251,	253,	254,	
	}	,	//0.65 - 7(copy 0.7)
	{						
	1,	2,	3,	4,	5,	6,	7,	8,	9,	10,	11,	12,	14,	15,	17,	18,	
	20,	21,	22,	23,	25,	26,	27,	28,	29,	30,	31,	32,	33,	34,	35,	36,	
	37,	38,	39,	40,	41,	42,	43,	43,	44,	45,	46,	47,	48,	48,	49,	50,	
	51,	52,	53,	53,	54,	55,	56,	56,	57,	58,	59,	59,	60,	61,	62,	62,	
	63,	64,	65,	65,	66,	67,	68,	68,	69,	69,	70,	71,	72,	72,	73,	74,	
	75,	75,	76,	76,	77,	77,	78,	79,	80,	80,	81,	81,	82,	83,	84,	84,	
	85,	85,	86,	86,	87,	87,	88,	89,	90,	90,	91,	91,	92,	92,	93,	93,	
	94,	94,	95,	96,	97,	97,	98,	98,	99,	99,	100,	100,	101,	101,	102,	102,	
	103,	104,	106,	107,	108,	109,	110,	111,	112,	113,	114,	115,	116,	117,	118,	119,	
	120,	121,	122,	123,	124,	125,	126,	127,	128,	129,	130,	131,	132,	133,	134,	135,	
	136,	137,	138,	138,	139,	140,	141,	142,	143,	144,	145,	146,	147,	148,	148,	149,	
	150,	151,	152,	153,	154,	155,	155,	156,	157,	158,	159,	160,	161,	161,	162,	163,	
	164,	166,	167,	169,	170,	172,	174,	175,	177,	178,	180,	182,	183,	185,	186,	188,	
	189,	191,	192,	194,	195,	197,	198,	200,	201,	203,	204,	206,	207,	209,	210,	211,	
	213,	214,	216,	217,	219,	220,	221,	223,	224,	225,	227,	228,	229,	231,	232,	234,	
	235,	236,	238,	239,	240,	241,	243,	244,	245,	247,	248,	249,	251,	252,	253,	254,	
	}	,	//0.6 - 8
	{
	1	,2		,3		,4		,5		,7		,9		,10		,	//8
	12	,14		,16		,18		,20		,22		,23		,24		,	//16
	25	,26		,27		,28		,29		,30		,31		,32		,	//24
	33	,34		,35		,36		,37		,38		,39		,40		,	//32
	41	,42		,43		,44		,45		,46		,47		,48		,	//40
	49	,50		,51		,52		,53		,54		,55		,56		,	//48
	57	,58		,59		,60		,61		,62		,63		,64		,	//56
	65	,66		,67		,68		,69		,69		,70		,71		,	//64
	72	,72		,73		,74		,75		,75		,76		,77		,	//72
	78	,78		,79		,79		,80		,81		,82		,82		,	//80
	83	,83		,84		,85		,86		,86		,87		,88		,	//88
	89	,90		,90		,91		,91		,92		,92		,93		,	//96
	94	,95		,95		,96		,96		,97		,97		,98		,	//104
	98	,99		,100		,101		,101		,102		,102		,103		,	//112
	103	,104		,104		,105		,105		,106		,106		,107		,	//120
	107	,108		,108		,109		,110		,110		,111		,112		,	//128
	113	,114		,115		,116		,117		,118		,119		,120		,	//136
	121	,122		,123		,124		,125		,126		,127		,128		,	//144
	129	,130		,131		,132		,133		,134		,135		,136		,	//152
	137	,138		,139		,140		,140		,141		,142		,143		,	//160
	144	,145		,146		,147		,148		,149		,150		,151		,	//168
	151	,152		,153		,154		,155		,155		,156		,157		,	//176
	158	,159		,160		,160		,161		,162		,163		,164		,	//184
	165	,165		,166		,167		,168		,169		,169		,170		,	//192
	172	,173		,175		,176		,178		,179		,181		,182		,	//200
	184	,185		,187		,188		,190		,191		,193		,194		,	//208
	196	,197		,198		,200		,201		,203		,204		,205		,	//216
	207	,208		,209		,210		,212		,213		,215		,216		,	//224
	217	,219		,220		,221		,223		,224		,225		,226		,	//232
	228	,229		,230		,232		,233		,234		,236		,238		,	//240
	240	,241		,242		,243		,244		,245		,246		,247		,	//248
	248	,249		,250		,251		,252		,253		,254		,255			//255
	}	,	//0.55 - 9	
	{
	1,	2,	3,	4,	8,	10,	12,	15,	18,	20,	23,	25,	27,	29,	31,	32,	
	34,	35,	37,	38,	39,	40,	42,	43,	44,	45,	47,	48,	49,	50,	51,	52,	
	53,	54,	55,	56,	57,	58,	59,	60,	61,	62,	63,	64,	65,	66,	67,	68,	
	69,	69,	70,	71,	72,	73,	74,	74,	75,	76,	77,	77,	78,	79,	80,	80,	
	81,	82,	83,	83,	84,	85,	86,	86,	87,	87,	88,	89,	90,	90,	91,	92,	
	93,	93,	94,	94,	95,	95,	96,	97,	98,	98,	99,	99,	100,	100,	101,	102,	
	103,	103,	104,	104,	105,	105,	106,	106,	107,	108,	109,	109,	110,	110,	111,	111,	
	112,	112,	113,	113,	114,	114,	115,	115,	116,	117,	118,	118,	119,	119,	120,	120,			//112~127(mid)
	
	121,	122,	123,	124,	125,	126,	127,	128,	129,	130,	131,	132,	133,	134,	135,	136,	
	137,	138,	139,	139,	140,	141,	142,	143,	144,	145,	146,	147,	148,	148,	149,	150,	
	151,	152,	153,	154,	154,	155,	156,	157,	158,	159,	159,	160,	161,	162,	163,	163,	
	164,	165,	166,	167,	167,	168,	169,	170,	171,	171,	172,	173,	174,	174,	175,	176,			//176~191(high)
	
	177,	178,	180,	181,	182,	184,	185,	187,	188,	190,	191,	192,	194,	195,	196,	198,	
	199,	200,	202,	203,	204,	206,	207,	208,	209,	211,	212,	213,	214,	216,	217,	218,	
	219,	221,	222,	223,	224,	225,	227,	228,	229,	230,	231,	232,	234,	235,	236,	237,	
	240,	241,	242,	243,	244,	245,	246,	247,	248,	249,	250,	251,	252,	253,	254,	255,			//240~255(extra, bayer sensor data input x)	
	}	,	//0.5 - 10 
	{
	1,	3,	6,	9,	12,	15,	18,	21,	24,	27,	30,	32,	34,	36,	39,	41,	
	43,	44,	46,	47,	49,	50,	51,	52,	54,	55,	56,	57,	59,	60,	61,	62,	
	63,	64,	65,	66,	67,	68,	69,	70,	71,	72,	73,	74,	75,	76,	77,	78,	
	79,	80,	81,	81,	82,	83,	84,	85,	86,	86,	87,	88,	89,	89,	90,	91,	
	92,	92,	93,	94,	95,	95,	96,	96,	97,	98,	99,	99,	100,	101,	102,	102,	
	103,	103,	104,	104,	105,	106,	107,	107,	108,	108,	109,	109,	110,	111,	112,	112,	
	113,	113,	114,	114,	115,	115,	116,	117,	118,	118,	119,	119,	120,	120,	121,	121,	
	122,	122,	123,	123,	124,	124,	125,	125,	126,	126,	127,	127,	128,	128,	129,	129,	
	
	130,	131,	132,	133,	134,	135,	136,	137,	138,	139,	140,	141,	142,	143,	144,	145,	
	146,	147,	147,	148,	149,	150,	151,	152,	153,	153,	154,	155,	156,	157,	158,	158,	
	159,	160,	161,	162,	163,	163,	164,	165,	166,	166,	167,	168,	169,	169,	170,	171,	
	172,	172,	173,	174,	175,	175,	176,	177,	178,	178,	179,	180,	180,	181,	182,	183,	
	
	183,	185,	186,	187,	189,	190,	191,	193,	194,	195,	197,	198,	199,	200,	202,	203,	
	204,	205,	207,	208,	209,	210,	211,	212,	214,	215,	216,	217,	218,	219,	221,	222,	
	223,	224,	225,	226,	227,	228,	229,	230,	231,	232,	234,	235,	236,	237,	238,	239,	
	240,	241,	242,	243,	244,	245,	246,	247,	248,	249,	250,	251,	252,	253,	254,	255,	
	}	,	//0.45 - 11
	{
	1,	4,	8,	12,	16,	20,	24,	28,	32,	36,	40,	44,	46,	48,	50,	51,	
	53,	55,	57,	58,	60,	61,	62,	63,	65,	66,	68,	69,	70,	71,	73,	74,	
	75,	76,	77,	78,	79,	80,	81,	82,	83,	84,	85,	86,	87,	88,	89,	90,	
	91,	91,	92,	93,	94,	95,	96,	96,	97,	98,	99,	99,	100,	101,	102,	102,	
	103,	104,	105,	105,	106,	107,	108,	108,	109,	109,	110,	111,	112,	112,	113,	113,	
	114,	114,	115,	116,	117,	117,	118,	118,	119,	119,	120,	121,	122,	122,	123,	123,	
	124,	124,	125,	125,	126,	126,	127,	127,	128,	128,	129,	130,	131,	131,	132,	132,	
	133,	133,	134,	134,	135,	135,	136,	136,	137,	137,	138,	138,	139,	139,	140,	140,	
	141,	142,	143,	144,	145,	145,	146,	147,	148,	149,	150,	151,	152,	153,	153,	154,	
	155,	156,	157,	158,	159,	159,	160,	161,	162,	163,	163,	164,	165,	166,	166,	167,	
	168,	169,	169,	170,	171,	172,	172,	173,	174,	175,	175,	176,	177,	177,	178,	179,	
	180,	180,	181,	182,	182,	183,	184,	184,	185,	186,	186,	187,	188,	188,	189,	190,	
	190,	191,	193,	194,	195,	196,	198,	199,	200,	201,	202,	204,	205,	206,	207,	208,	
	209,	210,	211,	213,	214,	215,	216,	217,	218,	219,	220,	221,	222,	223,	224,	225,	
	226,	227,	228,	229,	230,	231,	232,	233,	234,	235,	236,	237,	238,	239,	240,	240,	
	241,	242,	243,	244,	245,	246,	247,	248,	249,	249,	250,	251,	252,	253,	254,	255,	
	}	,	//0.4 - 12
	{
	1,	2,	3,	4,	5,	6,	7,	8,	9,	10,	11,	12,	13,	14,	15,	16,			//0~15(low)
	17,	18,	19,	20,	21,	22,	23,	24,	25,	26,	27,	28,	29,	30,	31,	32,			//16~31(low)
	33,	34,	35,	36,	37,	38,	39,	40,	41,	42,	43,	44,	45,	46,	47,	48,			//32~47(low-mid)
	49,	50,	51,	52,	53,	54,	55,	56,	57,	58,	59,	60,	61,	62,	63,	64,			//48~63(mid)
	65,	66,	67,	68,	69,	70,	71,	72,	73,	74,	75,	76,	77,	78,	79,	80,			//64~79(mid)
	81,	82,	83,	84,	85,	86,	87,	88,	89,	90,	91,	92,	93,	94,	95,	96,			//80~95(mid)
	97,	98,	99,	100,	101,	102,	103,	104,	105,	106,	107,	108,	109,	110,	111,	112,			//96~111(mid)
	112,	113,	114,	115,	116,	117,	118,	119,	120,	121,	122,	123,	124,	125,	126,	127,			//112~127(mid)	
	
	128,	129,	130,	131,	132,	133,	134,	135,	136,	137,	138,	139,	140,	141,	142,	143,			//128~143(mid-high)
	144,	145,	146,	147,	148,	149,	150,	151,	152,	153,	154,	155,	156,	157,	158,	159,			//144~159(high)
	160,	161,	162,	163,	164,	165,	166,	167,	168,	169,	170,	171,	172,	173,	174,	175,			//160~175(high)
	176,	177,	178,	179,	180,	181,	182,	183,	184,	185,	186,	187,	188,	189,	190,	191,			//176~191(high)
	
	192,	193,	194,	195,	196,	197,	198,	199,	200,	201,	202,	203,	204,	205,	206,	207,			//192~207(high) 180~203
	208,	209,	210,	211,	212,	213,	214,	215,	216,	217,	218,	219,	220,	221,	222,	223,			//208~223(high)
	224,	225,	226,	227,	228,	229,	230,	231,	232,	233,	234,	235,	236,	237,	238,	239,			//224~239(high)
	240,	241,	242,	243,	244,	245,	246,	247,	248,	249,	250,	251,	252,	253,	254,	255,			//240~255(extra, bayer sensor data input x)		
	}	,	//13 custom range 16-255(based on 0.45)
	{
	1,	2,	3,	4,	5,	6,	7,	8,	9,	10,	11,	12,	13,	14,	15,	16,			//0~15(low)
	17,	18,	19,	20,	21,	22,	23,	24,	25,	26,	27,	28,	29,	30,	31,	32,			//16~31(low)
	33,	34,	35,	36,	37,	38,	39,	40,	41,	42,	43,	44,	45,	46,	47,	48,			//32~47(low-mid)
	49,	50,	51,	52,	53,	54,	55,	56,	57,	58,	59,	60,	61,	62,	63,	64,			//48~63(mid)
	65,	66,	67,	68,	69,	70,	71,	72,	73,	74,	75,	76,	77,	78,	79,	80,			//64~79(mid)
	81,	82,	83,	84,	85,	86,	87,	88,	89,	90,	91,	92,	93,	94,	95,	96,			//80~95(mid)
	97,	98,	99,	100,	101,	102,	103,	104,	105,	106,	107,	108,	109,	110,	111,	112,			//96~111(mid)
	112,	113,	114,	115,	116,	117,	118,	119,	120,	121,	122,	123,	124,	125,	126,	127,			//112~127(mid)
	
	128,	129,	130,	131,	132,	133,	134,	135,	136,	137,	138,	139,	140,	141,	142,	143,			//128~143(mid-high)
	144,	145,	146,	147,	148,	149,	150,	151,	152,	153,	154,	155,	156,	157,	158,	159,			//144~159(high)
	160,	161,	162,	163,	164,	165,	166,	167,	168,	169,	170,	171,	172,	173,	174,	175,			//160~175(high)
	176,	177,	178,	179,	180,	181,	182,	183,	184,	185,	186,	187,	188,	189,	190,	191,			//176~191(high)
	
	192,	193,	194,	195,	196,	197,	198,	199,	200,	201,	202,	203,	204,	205,	206,	207,			//192~207(high) 180~203
	208,	209,	210,	211,	212,	213,	214,	215,	216,	217,	218,	219,	220,	221,	222,	223,			//208~223(high)
	224,	225,	226,	227,	228,	229,	230,	231,	232,	233,	234,	235,	236,	237,	238,	239,			//224~239(high)
	240,	241,	242,	243,	244,	245,	246,	247,	248,	249,	250,	251,	252,	253,	254,	255,			//240~255(extra, bayer sensor data input x)			
	}	,	//14 custom range 16-255(based on 0.45)
	{
	1,	2,	3,	4,	5,	6,	7,	8,	9,	10,	11,	12,	13,	14,	15,	16,			//0~15(low)
	17,	18,	19,	20,	21,	22,	23,	24,	25,	26,	27,	28,	29,	30,	31,	32,			//16~31(low)
	33,	34,	35,	36,	37,	38,	39,	40,	41,	42,	43,	44,	45,	46,	47,	48,			//32~47(low-mid)
	49,	50,	51,	52,	53,	54,	55,	56,	57,	58,	59,	60,	61,	62,	63,	64,			//48~63(mid)
	65,	66,	67,	68,	69,	70,	71,	72,	73,	74,	75,	76,	77,	78,	79,	80,			//64~79(mid)
	81,	82,	83,	84,	85,	86,	87,	88,	89,	90,	91,	92,	93,	94,	95,	96,			//80~95(mid)
	97,	98,	99,	100,	101,	102,	103,	104,	105,	106,	107,	108,	109,	110,	111,	112,			//96~111(mid)
	112,	113,	114,	115,	116,	117,	118,	119,	120,	121,	122,	123,	124,	125,	126,	127,			//112~127(mid)
	
	128,	129,	130,	131,	132,	133,	134,	135,	136,	137,	138,	139,	140,	141,	142,	143,			//128~143(mid-high)
	144,	145,	146,	147,	148,	149,	150,	151,	152,	153,	154,	155,	156,	157,	158,	159,			//144~159(high)
	160,	161,	162,	163,	164,	165,	166,	167,	168,	169,	170,	171,	172,	173,	174,	175,			//160~175(high)
	176,	177,	178,	179,	180,	181,	182,	183,	184,	185,	186,	187,	188,	189,	190,	191,			//176~191(high)
	
	192,	193,	194,	195,	196,	197,	198,	199,	200,	201,	202,	203,	204,	205,	206,	207,			//192~207(high) 180~203
	208,	209,	210,	211,	212,	213,	214,	215,	216,	217,	218,	219,	220,	221,	222,	223,			//208~223(high)
	224,	225,	226,	227,	228,	229,	230,	231,	232,	233,	234,	235,	236,	237,	238,	239,			//224~239(high)
	240,	241,	242,	243,	244,	245,	246,	247,	248,	249,	250,	251,	252,	253,	254,	255,			//240~255(extra, bayer sensor data input x)		
	}	,	//15 custom range 16-255(based on 0.45)
/*
	//thermo
	{0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,5		,
	10,	15		,20		,25		,30		,35		,40		,45		,
	50	,55	,60	,65	,70	,75	,80	,85	,
	90	,95	,100	,105	,110	,115	,120	,125	,
	130	,135	,140	,145	,150	,155	,160	,165	,
	170	,175	,180	,185	,190	,195	,200	,205	,
	210	,215	,220	,225	,230	,235	,240	,245	,
	250	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	
	}, 	//R - 16
	{0	,3		,6		,10		,13		,17		,20		,23		,
	27	,30		,33		,37		,40		,43		,47		,50		,
	53	,57		,60		,63		,67		,70		,73		,77		,
	80	,83		,87		,90		,93		,97		,100		,103		,
	107	,110		,113		,117		,120		,123		,127		,130		,
	133	,137		,140		,143		,147		,150		,153		,157		,
	160	,163		,167		,170		,173		,177		,180		,183		,
	187	,190		,193		,197		,200		,203		,207		,210		,
	213	,217		,220		,223		,227		,230		,233		,237		,
	240	,243		,246		,249		,252		,255		,255		,255		,
	255	,255		,255		,255		,255		,255		,255		,255		,
	255	,255		,255		,255		,255		,255		,255		,255		,
	255	,255		,255		,255		,255		,255		,255		,252		,
	249	,246		,243		,240		,237		,233		,230		,227		,
	223	,220		,217		,213		,210		,207		,203		,200		,
	197	,193		,190		,187		,183		,180		,177		,173		,
	170	,167	,163	,160	,157	,153	,150	,147	,
	143	,140	,137	,133	,130	,127	,123	,120	,
	117	,113	,110	,107	,103	,100	,97	,93	,
	90	,87	,83	,80	,77	,73	,70	,67	,
	63	,60	,57	,53	,50	,47	,43	,40	,
	37	,33	,30	,27	,23	,20	,17	,13	,
	10	,6	,3	,0	,0	,0	,0	,0	,
	0	,0	,0	,0	,0	,0	,0	,0	,
	0	,0	,0	,0	,0	,0	,0	,0	,
	0	,0	,0	,0	,0	,0	,0	,0	,
	0	,0	,0	,0	,0	,0	,0	,0	,
	0	,0	,0	,0	,0	,0	,0	,0	,
	0	,0	,0	,0	,0	,0	,0	,10	,
	20	,30	,40	,50	,60	,70	,80	,90	,
	100	,110	,120	,130	,140	,150	,160	,170	,
	180	,190	,200	,210	,220	,232	,244	,255
	}, 	//G - 17	
	{255	,252		,249		,246		,243		,240		,237		,233		,
	 230		,227		,223		,220		,217		,213		,210		,207		,
	 203		,200		,197		,193		,190		,187		,183		,180		,
	 177		,173		,170		,167		,163		,160		,157		,153		,
	 150		,147		,143		,140		,137		,133		,130		,127		,
	 123		,120		,117		,113		,110		,107		,103		,100		,
	 97		,93		,90		,87		,83		,80		,77		,73		,
	 70		,67		,63		,60		,57		,53		,50		,47		,
	 43		,40		,37		,33		,30		,27		,23		,20		,
	 17		,13		,10		,7		,3		,0		,0		,0		,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,3	,7	,10	,13	,17	,
	 20	,23	,27	,30	,33	,37	,40	,43	,
	 47	,50	,53	,57	,60	,63	,67	,70	,
	 73	,77	,80	,83	,87	,90	,93	,97	,
	 100	,103	,107	,110	,113	,117	,120	,123	,
	 127	,130	,133	,137	,140	,143	,147	,150	,
	 153	,157	,160	,163	,167	,170	,173	,177	,
	 180	,183	,187	,190	,193	,197	,200	,203	,
	 207	,210	,213	,217	,220	,223	,227	,230	,
	 233	,237	,240	,243	,246 ,249	,252	,255
	} 	//B - 18
	*/

};	
	
	
	
	
	
	
ROMDATA BYTE gamma_value_table[18][32] = 
{
    {0x04, 0x08, 0x0c, 0x10, 0x14, 0x18, 0x1c, 0x20,   0x28, 0x30, 0x38, 0x40, 0x48, 0x50, 0x58, 0x60,  
     0x68, 0x70, 0x78, 0x80, 0x88, 0x90, 0x98, 0xa0,   0xa8, 0xb0, 0xb8, 0xc0, 0xd0, 0xe0, 0xf0, 0xff}, //1.0  
    {0x05, 0x0a, 0x0e, 0x12, 0x17, 0x1b, 0x1f, 0x23,   0x2c, 0x34, 0x3c, 0x45, 0x4d, 0x55, 0x5d, 0x65, 
     0x6d, 0x75, 0x7d, 0x84, 0x8c, 0x94, 0x9c, 0xa4,   0xac, 0xb3, 0xbb, 0xc3, 0xd2, 0xe1, 0xf1, 0xff}, //0.95 - power law gamma
    {0x06, 0x0b, 0x10, 0x15, 0x1a, 0x1e, 0x23, 0x27,   0x30, 0x39, 0x41, 0x49, 0x52, 0x5a, 0x62, 0x6a, 
     0x72, 0x7a, 0x81, 0x89, 0x91, 0x98, 0xa0, 0xa8,   0xaf, 0xb7, 0xbe, 0xc6, 0xd4, 0xe3, 0xf1, 0xff}, //0.90 - power law gamma
    {0x07, 0x0d, 0x13, 0x18, 0x1d, 0x22, 0x27, 0x2c,   0x35, 0x3e, 0x46, 0x4f, 0x57, 0x5f, 0x67, 0x6f, 
     0x77, 0x7f, 0x86, 0x8e, 0x95, 0x9d, 0xa4, 0xac,   0xb3, 0xba, 0xc1, 0xc8, 0xd6, 0xe4, 0xf2, 0xff}, //0.85 - power law gamma
    {0x09, 0x10, 0x16, 0x1c, 0x21, 0x27, 0x2c, 0x30,   0x3a, 0x43, 0x4c, 0x54, 0x5d, 0x65, 0x6d, 0x75, 
     0x7c, 0x84, 0x8c, 0x93, 0x9a, 0xa1, 0xa9, 0xb0,   0xb7, 0xbe, 0xc4, 0xcb, 0xd9, 0xe6, 0xf3, 0xff}, //0.80 - power law gamma
    {0x0b, 0x13, 0x1a, 0x20, 0x26, 0x2b, 0x31, 0x36,   0x40, 0x49, 0x52, 0x5a, 0x63, 0x6b, 0x73, 0x7b, 
     0x82, 0x8a, 0x91, 0x98, 0x9f, 0xa6, 0xad, 0xb4,   0xba, 0xc1, 0xc8, 0xce, 0xdb, 0xe7, 0xf4, 0xff}, //0.75 - power law gamma
    {0x01, 0x09, 0x11, 0x18, 0x1F, 0x25, 0x2B, 0x30,   0x3B, 0x45, 0x4F, 0x58, 0x60, 0x69, 0x71, 0x79, 
     0x81, 0x89, 0x90, 0x98, 0x9F, 0xA6, 0xAD, 0xB4,   0xBA, 0xC1, 0xC8, 0xCE, 0xDB, 0xE7, 0xF3, 0xFF}, //0.70 - 6 sRGB gamma
    {0x04, 0x0E, 0x16, 0x1E, 0x25, 0x2B, 0x31, 0x37,   0x42, 0x4C, 0x56, 0x5F, 0x68, 0x70, 0x78, 0x80, 
     0x88, 0x8F, 0x96, 0x9D, 0xA4, 0xAB, 0xB2, 0xB8,   0xBF, 0xC5, 0xCB, 0xD1, 0xDD, 0xE9, 0xF4, 0xFF}, //0.65 - 7 sRGB gamma 
    {0x08, 0x13, 0x1C, 0x25, 0x2C, 0x34, 0x3B, 0x41,   0x47, 0x53, 0x5D, 0x66, 0x6F, 0x78, 0x80, 0x87, 
     0x8F, 0x96, 0x9D, 0xA3, 0xAA, 0xB0, 0xB7, 0xBD,   0xC3, 0xC9, 0xCF, 0xD4, 0xE0, 0xEA, 0xF5, 0xFF}, //0.60 - 8 sRGB gamma 
    {0x0D, 0x1A, 0x24, 0x2C, 0x34, 0x3B, 0x41, 0x47,   0x53, 0x5D, 0x66, 0x6F, 0x78, 0x80, 0x87, 0x8F,
     0x96, 0x9D, 0xA3, 0xAA, 0xB0, 0xB6, 0xBC, 0xC2,   0xC7, 0xCD, 0xD2, 0xD8, 0xE2, 0xEC, 0xF6, 0xFF}, //0.55 - 9 sRGB gamma 
    {0x13, 0x21, 0x2C, 0x35, 0x3D, 0x44, 0x4B, 0x51,   0x5C, 0x66, 0x70, 0x78, 0x80, 0x88, 0x90, 0x97, 
     0x9D, 0xA4, 0xAA, 0xB0, 0xB6, 0xBC, 0xC1, 0xC7,   0xCC, 0xD1, 0xD6, 0xDB, 0xE4, 0xEE, 0xF6, 0xFF}, //0.50 - 10 sRGB gamma 
    {0x1B, 0x2A, 0x35, 0x3F, 0x47, 0x4E, 0x55, 0x5B,   0x66, 0x70, 0x79, 0x82, 0x8A, 0x91, 0x98, 0x9F,  
     0xA5, 0xAB, 0xB1, 0xB7, 0xBC, 0xC1, 0xC7, 0xCC,   0xD0, 0xD5, 0xDA, 0xDE, 0xE7, 0xEF, 0xF7, 0xFF}, //0.45 - 11 sRGB gamma 
    {0x25, 0x35, 0x41, 0x4A, 0x53, 0x5A, 0x61, 0x67,   0x72, 0x7B, 0x84, 0x8C, 0x94, 0x9B, 0xA1, 0xA7, 
     0xAD, 0xB3, 0xB8, 0xBE, 0xC3, 0xC8, 0xCC, 0xD1,   0xD5, 0xD9, 0xDE, 0xE2, 0xE9, 0xF1, 0xF8, 0xFF}, //0.40 - 12 sRGB gamma
    {0x30, 0x42, 0x4E, 0x58, 0x60, 0x67, 0x6E, 0x74,   0x7E, 0x87, 0x90, 0x97, 0x9E, 0xA5, 0xAB, 0xB1, 
     0xB6, 0xBB, 0xC0, 0xC5, 0xC9, 0xCE, 0xD2, 0xD6,   0xDA, 0xDE, 0xE1, 0xE5, 0xEC, 0xF3, 0xF9, 0xFF},  //0.35 - 13 sRGB gamma
    {0x18, 0x2b, 0x38, 0x44, 0x4e, 0x56, 0x5c, 0x64,   0x72, 0x7e, 0x87, 0x8f, 0x96, 0x9d, 0xa3, 0xa9, 
     0xaf, 0xb4, 0xba, 0xbf, 0xc4, 0xc9, 0xcd, 0xd2,   0xd6, 0xda, 0xde, 0xe2, 0xea, 0xf1, 0xf9, 0xff},  //custom - ktnc zoom
    {0x1E, 0x2C, 0x36, 0x3F, 0x47, 0x4E, 0x55, 0x5B,   0x66, 0x70, 0x79, 0x82, 0x8A, 0x91, 0x98, 0x9F,  
     0xA5, 0xAB, 0xB1, 0xB7, 0xBC, 0xC1, 0xC7, 0xCC,   0xD0, 0xD5, 0xDA, 0xDE, 0xE7, 0xEF, 0xF7, 0xFF}, //0.45 - 11 sRGB gamma 
    {0x04, 0x08, 0x0c, 0x10, 0x14, 0x18, 0x1c, 0x20,   0x28, 0x30, 0x38, 0x40, 0x48, 0x50, 0x58, 0x60,  
     0x68, 0x70, 0x78, 0x80, 0x88, 0x90, 0x98, 0xa0,   0xa8, 0xb0, 0xb8, 0xc0, 0xd0, 0xe0, 0xf0, 0xff},  //dwdr - auto/on
    {0x48, 0x58, 0x64, 0x6a, 0x71, 0x78, 0x7e, 0x83,   0x8d, 0x95, 0x9d, 0xa4, 0xaa, 0xb0, 0xb5, 0xbb, 
     0xbf, 0xc4, 0xc8, 0xcd, 0xd1, 0xd4, 0xd8, 0xdc,   0xdf, 0xe2, 0xe6, 0xe9, 0xef, 0xf5, 0xfa, 0xff}  //dwdr - natural
};
#else	//__USE_EXTENSION_BYGAMMA__==0,1
ROMDATA BYTE gamma256_value_table[19][256] = 
{
	// gamma bypass - 1.0 
	{
	0	,1		,2		,3		,4		,5		,6		,7		,
	8	,9		,10		,11		,12		,13		,14		,15		,
	16	,17		,18		,19		,20		,21		,22		,23		,
	24	,25		,26		,27		,28		,29		,30		,31		,
	32	,33		,34		,35		,36		,37		,38		,39		,
	40	,41		,42		,43		,44		,45		,46		,47		,
	48	,49		,50		,51		,52		,53		,54		,55		,
	56	,57		,58		,59		,60		,61		,62		,63		,
	64	,65		,66		,67		,68		,69		,70		,71		,
	72	,73		,74		,75		,76		,77		,78		,79		,
	80	,81		,82		,83		,84		,85		,86		,87		,
	88	,89		,90		,91		,92		,93		,94		,95		,
	96	,97		,98		,99		,100		,101		,102		,103		,
	104,	105		,106		,107		,108		,109		,110		,111		,
	112	,113	,114	,115	,116	,117	,118	,119	,
	120	,121	,122	,123	,124	,125	,126	,127	,
	128	,129	,130	,131	,132	,133	,134	,135	,
	136	,137	,138	,139	,140	,141	,142	,143	,
	144	,145	,146	,147	,148	,149	,150	,151	,
	152	,153	,154	,155	,156	,157	,158	,159	,
	160	,161	,162	,163	,164	,165	,166	,167	,
	168	,169	,170	,171	,172	,173	,174	,175	,
	176	,177	,178	,179	,180	,181	,182	,183	,
	184	,185	,186	,187	,188	,189	,190	,191	,
	192	,193	,194	,195	,196	,197	,198	,199	,
	200	,201	,202	,203	,204	,205	,206	,207	,
	208	,209	,210	,211	,212	,213	,214	,215	,
	216	,217	,218	,219	,220	,221	,222	,223	,
	224	,225	,226	,227	,228	,229	,230	,231	,
	232	,233	,234	,235	,236	,237	,238	,239	,
	240	,241	,242	,243	,244	,245	,246	,247	,
	248	,249	,250	,251	,252	,253	,254	,255
	}	,	//1.0 - 0
	{
	2	,2		,2		,2		,2		,2		,2		,2		,
	2	,2		,2		,2		,2		,2		,3		,4		,
	5	,7		,8		,9		,10		,11		,12		,13		,
	14	,16		,17		,18		,19		,20		,21		,22		,
	23	,25		,26		,27		,28		,29		,30		,31		,
	32	,33		,34		,36		,37		,38		,39		,40		,
	41	,42		,43		,44		,45		,46		,48		,49		,
	50	,51		,52		,53		,54		,55		,56		,57		,
	58	,59		,60		,62		,63		,64		,65		,66		,
	67	,68		,69		,70		,71		,72		,73		,74		,
	75	,76		,78		,79		,80		,81		,82		,83		,
	84	,85		,86		,87		,88		,89		,90		,91		,
	92	,93		,94		,95		,97		,98		,99		,100	,
	101	,102	,103	,104	,105	,106	,107	,108	,
	109	,110	,111	,112	,113	,114	,115	,116	,
	117	,118	,120	,121	,122	,123	,124	,125	,
	126	,127	,128	,129	,130	,131	,132	,133	,
	134	,135	,136	,137	,138	,139	,140	,141	,
	142	,143	,144	,145	,146	,147	,148	,150	,
	151	,152	,153	,154	,155	,156	,157	,158	,
	159	,160	,161	,162	,163	,164	,165	,166	,
	167	,168	,169	,170	,171	,172	,173	,174	,
	175	,176	,177	,178	,179	,180	,181	,182	,
	183	,184	,185	,186	,187	,188	,189	,190	,
	191	,192	,193	,194	,195	,197	,198	,199	,
	200	,201	,202	,203	,204	,205	,206	,207	,
	208	,209	,210	,211	,212	,213	,214	,215	,
	216	,217	,218	,219	,220	,221	,222	,223	,
	224	,225	,226	,227	,228	,229	,230	,231	,
	232	,233	,234	,235	,236	,237	,238	,239	,
	240	,241	,242	,243	,244	,245	,246	,247	,
	248	,249	,250	,251	,252	,253	,254	,255
	}	,	//0.95 - 1

	{
	2	,2		,2		,2		,2		,2		,2		,2		,
	2	,2		,2		,2		,3		,4		,6		,7		,
	8	,9		,11		,12		,13		,14		,16		,17		,
	18	,19		,20		,22		,23		,24		,25		,26		,
	28	,29		,30		,31		,32		,33		,34		,36		,
	37	,38		,39		,40		,41		,42		,44		,45		,
	46	,47		,48		,49		,50		,51		,53		,54		,
	55	,56		,57		,58		,59		,60		,61		,62		,
	64	,65		,66		,67		,68		,69		,70		,71		,
	72	,73		,74		,75		,76		,78		,79		,80		,
	81	,82		,83		,84		,85		,86		,87		,88		,
	89	,90		,91		,92		,93		,95		,96		,97		,
	98	,99		,100	,101	,102	,103	,104	,105	,
	106	,107	,108	,109	,110	,111	,112	,113	,
	114	,115	,116	,117	,118	,119	,120	,121	,
	122	,124	,125	,126	,127	,128	,129	,130	,
	131	,132	,133	,134	,135	,136	,137	,138	,
	139	,140	,141	,142	,143	,144	,145	,146	,
	147	,148	,149	,150	,151	,152	,153	,154	,
	155	,156	,157	,158	,159	,160	,161	,162	,
	163	,164	,165	,166	,167	,168	,169	,170	,
	171	,172	,173	,174	,175	,176	,177	,178	,
	179	,180	,181	,182	,183	,184	,185	,186	,
	187	,188	,188	,189	,190	,191	,192	,193	,
	194	,195	,196	,197	,198	,199	,200	,201	,
	202	,203	,204	,205	,206	,207	,208	,209	,
	210	,211	,212	,213	,214	,215	,216	,217	,
	218	,219	,220	,221	,222	,222	,223	,224	,
	225	,226	,227	,228	,229	,230	,231	,232	,
	233	,234	,235	,236	,237	,238	,239	,240	,
	241	,242	,243	,244	,245	,245	,246	,247	,
	248	,249	,250	,251	,252	,253	,254	,255
	}	,	//0.9 - 2

	{
	2	,2		,2		,2		,2		,2		,2		,2		,
	2	,2		,3		,5		,6		,7		,9		,10		,
	12	,13		,14		,16		,17		,18		,19		,21		,
	22	,23		,25		,26		,27		,28		,30		,31		,
	32	,33		,35		,36		,37		,38		,39		,41		,
	42	,43		,44		,45		,46		,48		,49		,50		,
	51	,52		,53		,54		,56		,57		,58		,59		,
	60	,61		,62		,64		,65		,66		,67		,68		,
	69	,70		,71		,72		,73		,75		,76		,77		,
	78	,79		,80		,81		,82		,83		,84		,85		,
	86	,87		,89		,90		,91		,92		,93		,94		,
	95	,96		,97		,98		,99		,100	,101	,102	,
	103	,104	,105	,106	,107	,108	,109	,110	,
	111	,113	,114	,115	,116	,117	,118	,119	,
	120	,121	,122	,123	,124	,125	,126	,127	,
	128	,129	,130	,131	,132	,133	,134	,135	,
	136	,137	,138	,139	,140	,141	,142	,143	,
	144	,145	,146	,147	,148	,149	,150	,151	,
	151	,152	,153	,154	,155	,156	,157	,158	,
	159	,160	,161	,162	,163	,164	,165	,166	,
	167	,168	,169	,170	,171	,172	,173	,174	,
	175	,176	,177	,178	,178	,179	,180	,181	,
	182	,183	,184	,185	,186	,187	,188	,189	,
	190	,191	,192	,193	,194	,195	,195	,196	,
	197	,198	,199	,200	,201	,202	,203	,204	,
	205	,206	,207	,208	,209	,209	,210	,211	,
	212	,213	,214	,215	,216	,217	,218	,219	,
	220	,221	,221	,222	,223	,224	,225	,226	,
	227	,228	,229	,230	,231	,231	,232	,233	,
	234	,235	,236	,237	,238	,239	,240	,241	,
	241	,242	,243	,244	,245	,246	,247	,248	,
	249	,250	,251	,251	,252	,253	,254	,255
	}	,	//0.85 - 3

	{
	2	,2		,2		,2		,2		,2		,2		,2		,
	3	,5		,6		,8		,9		,11		,12		,14		,
	15	,17		,18		,20		,21		,22		,24		,25		,
	27	,28		,29		,31		,32		,33		,35		,36		,
	37	,38		,40		,41		,42		,43		,45		,46		,
	47	,48		,50		,51		,52		,53		,54		,56		,
	57	,58		,59		,60		,61		,63		,64		,65		,
	66	,67		,68		,69		,71		,72		,73		,74		,
	75	,76		,77		,78		,79		,81		,82		,83		,
	84	,85		,86		,87		,88		,89		,90		,91		,
	92	,93		,95		,96		,97		,98		,99		,100	,
	101	,102	,103	,104	,105	,106	,107	,108	,
	109	,110	,111	,112	,113	,114	,115	,116	,
	117	,118	,119	,120	,121	,122	,123	,124	,
	125	,126	,127	,128	,129	,130	,131	,132	,
	133	,134	,135	,136	,137	,138	,139	,140	,
	141	,142	,143	,144	,145	,146	,147	,148	,
	149	,150	,151	,152	,152	,153	,154	,155	,
	156	,157	,158	,159	,160	,161	,162	,163	,
	164	,165	,166	,167	,168	,168	,169	,170	,
	171	,172	,173	,174	,175	,176	,177	,178	,
	179	,180	,180	,181	,182	,183	,184	,185	,
	186	,187	,188	,189	,190	,190	,191	,192	,
	193	,194	,195	,196	,197	,198	,199	,199	,
	200	,201	,202	,203	,204	,205	,206	,207	,
	207	,208	,209	,210	,211	,212	,213	,214	,
	215	,215	,216	,217	,218	,219	,220	,221	,
	222	,222	,223	,224	,225	,226	,227	,228	,
	229	,229	,230	,231	,232	,233	,234	,235	,
	235	,236	,237	,238	,239	,240	,241	,241	,
	242	,243	,244	,245	,246	,247	,247	,248	,
	249	,250	,251	,252	,252	,253	,254	,255
	}	,	//0.8 - 4

	{
	2	,2		,2		,2		,2		,2		,2		,4		,
	6	,8		,10		,11		,13		,15		,16		,18		,
	20	,21		,23		,24		,26		,27		,29		,30		,
	32	,33		,35		,36		,37		,39		,40		,41		,
	43	,44		,45		,47		,48		,49		,50		,52		,
	53	,54		,56		,57		,58		,59		,60		,62		,
	63	,64		,65		,66		,68		,69		,70		,71		,
	72	,73		,75		,76		,77		,78		,79		,80		,
	81	,82		,84		,85		,86		,87		,88		,89		,
	90	,91		,92		,93		,94		,96		,97		,98		,
	99	,100	,101	,102	,103	,104	,105	,106	,
	107	,108	,109	,110	,111	,112	,113	,114	,
	115	,116	,117	,118	,119	,120	,121	,122	,
	123	,124	,125	,126	,127	,128	,129	,130	,
	131	,132	,133	,134	,135	,136	,137	,138	,
	139	,140	,141	,142	,143	,144	,145	,145	,
	146	,147	,148	,149	,150	,151	,152	,153	,
	154	,155	,156	,157	,158	,158	,159	,160	,
	161	,162	,163	,164	,165	,166	,167	,168	,
	168	,169	,170	,171	,172	,173	,174	,175	,
	176	,177	,177	,178	,179	,180	,181	,182	,
	183	,184	,184	,185	,186	,187	,188	,189	,
	190	,191	,191	,192	,193	,194	,195	,196	,
	197	,197	,198	,199	,200	,201	,202	,203	,
	203	,204	,205	,206	,207	,208	,209	,209	,
	210	,211	,212	,213	,214	,214	,215	,216	,
	217	,218	,219	,219	,220	,221	,222	,223	,
	224	,224	,225	,226	,227	,228	,228	,229	,
	230	,231	,232	,233	,233	,234	,235	,236	,
	237	,237	,238	,239	,240	,241	,241	,242	,
	243	,244	,245	,245	,246	,247	,248	,249	,
	249	,250	,251	,252	,253	,253	,254	,255
	}	,	//0.75 - 5

	{
	2	,2		,2		,2		,2		,3		,5		,8		,
	10	,12		,14		,16		,18		,19		,21		,23		,
	25	,26		,28		,30		,31		,33		,34		,36		,
	37	,39		,40		,42		,43		,45		,46		,48		,
	49	,50		,52		,53		,54		,56		,57		,58		,
	60	,61		,62		,63		,65		,66		,67		,68		,
	70	,71		,72		,73		,74		,76		,77		,78		,
	79	,80		,81		,83		,84		,85		,86		,87		,
	88	,89		,90		,92		,93		,94		,95		,96		,
	97	,98		,99		,100	,101	,102	,103	,104	,
	105	,107	,108	,109	,110	,111	,112	,113	,
	114	,115	,116	,117	,118	,119	,120	,121	,
	122	,123	,124	,125	,126	,127	,128	,129	,
	130	,131	,131	,132	,133	,134	,135	,136	,
	137	,138	,139	,140	,141	,142	,143	,144	,
	145	,146	,147	,147	,148	,149	,150	,151	,
	152	,153	,154	,155	,156	,157	,157	,158	,
	159	,160	,161	,162	,163	,164	,165	,165	,
	166	,167	,168	,169	,170	,171	,172	,172	,
	173	,174	,175	,176	,177	,178	,178	,179	,
	180	,181	,182	,183	,183	,184	,185	,186	,
	187	,188	,189	,189	,190	,191	,192	,193	,
	194	,194	,195	,196	,197	,198	,198	,199	,
	200	,201	,202	,202	,203	,204	,205	,206	,
	207	,207	,208	,209	,210	,211	,211	,212	,
	213	,214	,215	,215	,216	,217	,218	,218	,
	219	,220	,221	,222	,222	,223	,224	,225	,
	225	,226	,227	,228	,229	,229	,230	,231	,
	232	,232	,233	,234	,235	,235	,236	,237	,
	238	,239	,239	,240	,241	,242	,242	,243	,
	244	,245	,245	,246	,247	,248	,248	,249	,
	250	,251	,251	,252	,253	,254	,254	,255
	}	,	//0.7 - 6


	{
	2	,2		,2		,2		,4		,7		,9		,12		,	
	14	,17		,19		,21		,23		,25		,27		,29		,	
	30	,32		,34		,36		,37		,39		,41		,42		,	
	44	,45		,47		,48		,50		,51		,53		,54		,	
	56	,57		,59		,60		,61		,63		,64		,65		,	
	67	,68		,69		,71		,72		,73		,74		,76		,	
	77	,78		,79		,80		,82		,83		,84		,85		,	
	86	,88		,89		,90		,91		,92		,93		,94		,	
	96	,97		,98		,99		,100	,101	,102	,103	,
	104	,105	,106	,107	,108	,110	,111	,112	,
	113	,114	,115	,116	,117	,118	,119	,120	,
	121	,122	,123	,124	,125	,126	,127	,128	,
	129	,130	,130	,131	,132	,133	,134	,135	,
	136	,137	,138	,139	,140	,141	,142	,143	,
	144	,144	,145	,146	,147	,148	,149	,150	,
	151	,152	,153	,153	,154	,155	,156	,157	,
	158	,159	,160	,160	,161	,162	,163	,164	,
	165	,166	,166	,167	,168	,169	,170	,171	,
	172	,172	,173	,174	,175	,176	,177	,177	,
	178	,179	,180	,181	,181	,182	,183	,184	,
	185	,185	,186	,187	,188	,189	,189	,190	,
	191	,192	,193	,193	,194	,195	,196	,197	,
	197	,198	,199	,200	,200	,201	,202	,203	,
	204	,204	,205	,206	,207	,207	,208	,209	,
	210	,210	,211	,212	,213	,213	,214	,215	,
	216	,216	,217	,218	,219	,219	,220	,221	,
	222	,222	,223	,224	,225	,225	,226	,227	,
	227	,228	,229	,230	,230	,231	,232	,233	,
	233	,234	,235	,235	,236	,237	,238	,238	,
	239	,240	,240	,241	,242	,242	,243	,244	,
	245	,245	,246	,247	,247	,248	,249	,249	,
	250	,251	,252	,252	,253	,254	,254	,255
	}	,	//0.65 - 7
	
	{						
	2	,2		,2		,5		,8		,11		,14		,17		,
	20	,22		,25		,27		,29		,31		,33		,35		,
	37	,39		,41		,43		,44		,46		,48		,49		,
	51	,53		,54		,56		,57		,59		,60		,62		,
	63	,65		,66		,68		,69		,70		,72		,73		,
	75	,76		,77		,78		,80		,81		,82		,84		,
	85	,86		,87		,88		,90		,91		,92		,93		,
	94	,95		,97		,98		,99		,100	,101	,102	,
	103	,104	,106	,107	,108	,109	,110	,111	,
	112	,113	,114	,115	,116	,117	,118	,119	,
	120	,121	,122	,123	,124	,125	,126	,127	,
	128	,129	,130	,131	,132	,133	,134	,135	,
	136	,137	,138	,138	,139	,140	,141	,142	,
	143	,144	,145	,146	,147	,148	,148	,149	,
	150	,151	,152	,153	,154	,155	,155	,156	,
	157	,158	,159	,160	,161	,161	,162	,163	,
	164	,165	,166	,166	,167	,168	,169	,170	,
	170	,171	,172	,173	,174	,175	,175	,176	,
	177	,178	,178	,179	,180	,181	,182	,182	,
	183	,184	,185	,186	,186	,187	,188	,189	,
	189	,190	,191	,192	,192	,193	,194	,195	,
	195	,196	,197	,198	,198	,199	,200	,201	,
	201	,202	,203	,204	,204	,205	,206	,206	,
	207	,208	,209	,209	,210	,211	,211	,212	,
	213	,214	,214	,215	,216	,216	,217	,218	,
	219	,219	,220	,221	,221	,222	,223	,223	,
	224	,225	,225	,226	,227	,227	,228	,229	,
	229	,230	,231	,232	,232	,233	,234	,234	,
	235	,236	,236	,237	,238	,238	,239	,240	,
	240	,241	,241	,242	,243	,243	,244	,245	,
	245	,246	,247	,247	,248	,249	,249	,250	,
	251	,251	,252	,252	,253	,254	,254	,255
	}	,	//0.6 - 8

	{
	2	,4		,6		,10		,14		,18		,20		,23		,
	26	,29		,31		,34		,36		,38		,40		,43		,
	45	,47		,49		,50		,52		,54		,56		,58		,
	59	,61		,63		,64		,66		,67		,69		,70		,
	72	,73		,75		,76		,78		,79		,80		,82		,
	83	,84		,86		,87		,88		,90		,91		,92		,
	93	,95		,96		,97		,98		,99		,101	,102	,
	103	,104	,105	,106	,107	,108	,110	,111	,
	112	,113	,114	,115	,116	,117	,118	,119	,
	120	,121	,122	,123	,124	,125	,126	,127	,
	128	,129	,130	,131	,132	,133	,134	,135	,
	136	,137	,138	,139	,140	,140	,141	,142	,
	143	,144	,145	,146	,147	,148	,149	,149	,
	150	,151	,152	,153	,154	,155	,155	,156	,
	157	,158	,159	,160	,160	,161	,162	,163	,
	164	,165	,165	,166	,167	,168	,169	,169	,
	170	,171	,172	,172	,173	,174	,175	,176	,
	176	,177	,178	,179	,179	,180	,181	,182	,
	182	,183	,184	,185	,185	,186	,187	,188	,
	188	,189	,190	,191	,191	,192	,193	,193	,
	194	,195	,196	,196	,197	,198	,198	,199	,
	200	,201	,201	,202	,203	,203	,204	,205	,
	205	,206	,207	,207	,208	,209	,209	,210	,
	211	,211	,212	,213	,213	,214	,215	,215	,
	216	,217	,217	,218	,219	,219	,220	,221	,
	221	,222	,223	,223	,224	,225	,225	,226	,
	226	,227	,228	,228	,229	,230	,230	,231	,
	232	,232	,233	,233	,234	,235	,235	,236	,
	236	,237	,238	,238	,239	,240	,240	,241	,
	241	,242	,243	,243	,244	,244	,245	,246	,
	246	,247	,247	,248	,249	,249	,250	,250	,
	251	,251	,252	,253	,253	,254	,254	,255				
	}	,	//0.55 - 9	

	{
	2	,3		,10		,15		,20		,24		,27		,31 	,
	34	,37		,39		,42		,44		,47		,49		,51 	,
	53	,55		,57		,59		,61		,63		,65		,67 	,
	69	,70		,72		,74		,75		,77		,78		,80 	,
	81	,83		,84		,86		,87		,88		,90		,91 	,
	93	,94		,95		,96		,98		,99		,100	,101	,
	103	,104	,105	,106	,107	,109	,110	,111	,
	112	,113	,114	,115	,116	,118	,119	,120	,
	121	,122	,123	,124	,125	,126	,127	,128	,
	129	,130	,131	,132	,133	,134	,135	,136	,
	137	,138	,139	,139	,140	,141	,142	,143	,
	144	,145	,146	,147	,148	,148	,149	,150	,
	151	,152	,153	,154	,154	,155	,156	,157	,
	158	,159	,159	,160	,161	,162	,163	,163	,
	164	,165	,166	,167	,167	,168	,169	,170	,
	171	,171	,172	,173	,174	,174	,175	,176	,
	177	,177	,178	,179	,180	,180	,181	,182	,
	182	,183	,184	,185	,185	,186	,187	,187	,
	188	,189	,190	,190	,191	,192	,192	,193	,
	194	,194	,195	,196	,196	,197	,198	,198	,
	199	,200	,200	,201	,202	,202	,203	,204	,
	204	,205	,206	,206	,207	,208	,208	,209	,
	209	,210	,211	,211	,212	,213	,213	,214	,
	214	,215	,216	,216	,217	,218	,218	,219	,
	219	,220	,221	,221	,222	,222	,223	,224	,
	224	,225	,225	,226	,227	,227	,228	,228	,
	229	,230	,230	,231	,231	,232	,232	,233	,
	234	,234	,235	,235	,236	,236	,237	,238	,
	238	,239	,239	,240	,240	,241	,241	,242	,
	243	,243	,244	,244	,245	,245	,246	,246	,
	247	,248	,248	,249	,249	,250	,250	,251	,
	251	,252	,252	,253	,253	,254	,254	,255
	}	,	//0.5 - 10 

	{
#if defined(__USE_CMOS_IMX226__) ||defined(__USE_CMOS_IMX274__) || defined(__USE_CMOS_IMX326__) ||defined(__USE_CMOS_IMX253__) || defined(__USE_CMOS_IMX334__)	// For 0.45 IM243/OM255
 0,  8, 16, 23, 28, 32, 36, 40, 43, 46, 
49, 52, 55, 57, 60, 62, 64, 67, 69, 71,
73, 75, 77, 78, 80, 82, 84, 85, 87, 89,
90, 92, 93, 95, 96, 98, 99, 101,102,103,
105,106,107,109,110,111,112,114,115,116,
117,118,120,121,122,123,124,125,126,127,
129,130,131,132,133,134,135,136,137,138,
139,140,141,142,143,144,145,146,147,147,
148,149,150,151,152,153,154,155,155,156,
157,158,159,160,161,161,162,163,164,165,
166,166,167,168,169,170,170,171,172,173,
173,174,175,176,176,177,178,179,179,180,
181,182,182,183,184,185,185,186,187,187,
188,189,190,190,191,192,192,193,194,194,
195,196,196,197,198,198,199,200,200,201,
202,202,203,204,204,205,205,206,207,207,
208,209,209,210,210,211,212,212,213,214,
214,215,215,216,217,217,218,218,219,219,
220,221,221,222,222,223,224,224,225,225,
226,226,227,228,228,229,229,230,230,231,
231,232,233,233,234,234,235,235,236,236,
237,237,238,239,239,240,240,241,241,242,
242,243,243,244,244,245,245,246,246,247,
247,248,248,249,249,250,250,251,252,252,
253,253,254,254,255,255,255,255,255,255,
255,255,255,255,255,255,
#elif defined(__USE_CMOS_IMX265__)|| defined(__USE_CMOS_IMX185__) || defined(__USE_CMOS_IMX290__) || defined(__USE_CMOS_IMX327__) || defined(__USE_CMOS_MN34420__) || defined(__USE_CMOS_MN34220__) || defined(__USE_CMOS_IMX385__) // For 0.45 IM240/OM255
0,	8,	17,	23,	28,	32,	36,	40,	44,	47,	50,	52,	55,	58,	60,	62,	
65,	67,	69,	71,	73,	75,	77,	79,	81,	82,	84,	86,	87,	89,	91,	92,	
94,	95,	97,	98,	100,	101,	102,	104,	105,	107,	108,	109,	110,	112,	113,	114,	
115,	117,	118,	119,	120,	121,	122,	124,	125,	126,	127,	128,	129,	130,	131,	132,	
133,	134,	135,	136,	137,	138,	139,	140,	141,	142,	143,	144,	145,	146,	147,	148,	
149,	150,	151,	152,	153,	154,	154,	155,	156,	157,	158,	159,	160,	160,	161,	162,	
163,	164,	165,	165,	166,	167,	168,	169,	169,	170,	171,	172,	173,	173,	174,	175,	
176,	176,	177,	178,	179,	179,	180,	181,	182,	182,	183,	184,	185,	185,	186,	187,	
187,	188,	189,	190,	190,	191,	192,	192,	193,	194,	194,	195,	196,	196,	197,	198,	
198,	199,	200,	200,	201,	202,	202,	203,	204,	204,	205,	206,	206,	207,	208,	208,	
209,	209,	210,	211,	211,	212,	213,	213,	214,	214,	215,	216,	216,	217,	217,	218,	
219,	219,	220,	220,	221,	222,	222,	223,	223,	224,	224,	225,	226,	226,	227,	227,	
228,	228,	229,	230,	230,	231,	231,	232,	232,	233,	234,	234,	235,	235,	236,	236,	
237,	237,	238,	238,	239,	239,	240,	241,	241,	242,	242,	243,	243,	244,	244,	245,	
245,	246,	246,	247,	247,	248,	248,	249,	249,	250,	250,	251,	251,	252,	252,	253,	
254,	254,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,
#else		
	2	,8		,16		,22		,27		,32		,36		,39		,
	43	,46		,49		,51		,54		,56		,59		,61		,
	63	,66		,68		,70		,72		,73		,75		,77		,
	79	,81		,82		,84		,86		,87		,89		,90		,
	92	,93		,95		,96		,97		,99		,100	,102	,
	103	,104	,105	,107	,108	,109	,110	,112	,
	113	,114	,115	,116	,118	,119	,120	,121	,
	122	,123	,124	,125	,126	,127	,128	,129	,
	130	,131	,132	,133	,134	,135	,136	,137	,
	138	,139	,140	,141	,142	,143	,144	,145	,
	146	,147	,147	,148	,149	,150	,151	,152	,
	153	,153	,154	,155	,156	,157	,158	,158	,
	159	,160	,161	,162	,163	,163	,164	,165	,
	166	,166	,167	,168	,169	,169	,170	,171	,
	172	,172	,173	,174	,175	,175	,176	,177	,
	178	,178	,179	,180	,180	,181	,182	,183	,
	183	,184	,185	,185	,186	,187	,187	,188	,
	189	,189	,190	,191	,191	,192	,193	,193	,
	194	,195	,195	,196	,197	,197	,198	,198	,
	199	,200	,200	,201	,202	,202	,203	,203	,
	204	,205	,205	,206	,207	,207	,208	,208	,
	209	,210	,210	,211	,211	,212	,212	,213	,
	214	,214	,215	,215	,216	,217	,217	,218	,
	218	,219	,219	,220	,221	,221	,222	,222	,
	223	,223	,224	,224	,225	,226	,226	,227	,
	227	,228	,228	,229	,229	,230	,230	,231	,
	231	,232	,232	,233	,234	,234	,235	,235	,
	236	,236	,237	,237	,238	,238	,239	,239	,
	240	,240	,241	,241	,242	,242	,243	,243	,
	244	,244	,245	,245	,246	,246	,247	,247	,
	248	,248	,249	,249	,250	,250	,251	,251	,
	252	,252	,253	,253	,254	,254	,255	,255
#endif
	}	,	//0.45 - 11
	
	{
	2	,15		,25		,31		,37		,42		,46		,50 	,
	53	,57		,60		,62		,65		,68		,70		,73 	,
	75	,77		,79		,81		,83		,85		,87		,89 	,
	91	,92		,94		,96		,97		,99		,100	,102	,
	103	,105	,106	,108	,109	,110	,112	,113	,
	114	,115	,117	,118	,119	,120	,122	,123	,
	124	,125	,126	,127	,128	,129	,131	,132	,
	133	,134	,135	,136	,137	,138	,139	,140	,
	141	,142	,143	,144	,145	,145	,146	,147	,
	148	,149	,150	,151	,152	,153	,153	,154	,
	155	,156	,157	,158	,159	,159	,160	,161	,
	162	,163	,163	,164	,165	,166	,166	,167	,
	168	,169	,169	,170	,171	,172	,172	,173	,
	174	,175	,175	,176	,177	,177	,178	,179	,
	180	,180	,181	,182	,182	,183	,184	,184	,
	185	,186	,186	,187	,188	,188	,189	,190	,
	190	,191	,191	,192	,193	,193	,194	,195	,
	195	,196	,196	,197	,198	,198	,199	,199	,
	200	,201	,201	,202	,202	,203	,204	,204	,
	205	,205	,206	,206	,207	,208	,208	,209	,
	209	,210	,210	,211	,211	,212	,213	,213	,
	214	,214	,215	,215	,216	,216	,217	,217	,
	218	,218	,219	,219	,220	,221	,221	,222	,
	222	,223	,223	,224	,224	,225	,225	,226	,
	226	,227	,227	,228	,228	,229	,229	,230	,
	230	,231	,231	,232	,232	,233	,233	,233	,
	234	,234	,235	,235	,236	,236	,237	,237	,
	238	,238	,239	,239	,240	,240	,240	,241	,
	241	,242	,242	,243	,243	,244	,244	,245	,
	245	,245	,246	,246	,247	,247	,248	,248	,
	249	,249	,249	,250	,250	,251	,251	,252	,
	252	,252	,253	,253	,254	,254	,255	,255
	}	,	//0.4 - 12
#if (defined(__USE_MANU_TAMRON__)||defined(__USE_MANU_TAMRON_PWM__))		//now testing and for demo...
	{
	2,	15,	22,	28,	34,	38,	42,	46,	49,	53,	56,	57,	60,	63,	65,	68,			//0~15(low)
	70,	72,	74,	75,	77,	79,	81,	82,	84,	85,	87,	89,	91,	92,	93,	95,			//16~31(low)
	97,	98,	100,	102,	103,	105,	106,	108,	109,	110,	111,	113,	114,	116,	117,	118,			//32~47(low-mid)
	120,	121,	122,	124,	125,	126,	127,	129,	129,	130,	131,	132,	134,	135,	136,	137,			//48~63(mid)
	138,	139,	140,	141,	142,	143,	144,	145,	146,	147,	148,	149,	149,	150,	151,	152,			//64~79(mid)
	153,	154,	155,	156,	157,	158,	159,	160,	160,	160,	161,	162,	163,	164,	165,	165,			//80~95(mid)
	165,	166,	167,	168,	168,	169,	170,	171,	172,	172,	173,	174,	174,	175,	176,	177,			//96~111(mid)
	177,	178,	179,	179,	180,	181,	181,	182,	183,	183,	183,	183,	184,	184,	185,	185,			//112~127(mid)
	186,	186,	187,	187,	188,	188,	189,	190,	190,	191,	191,	192,	192,	193,	193,	194,			//128~143(mid-high)
	194,	195,	195,	196,	196,	196,	197,	197,	198,	198,	199,	199,	199,	200,	200,	201,			//144~159(high)
	201,	201,	202,	202,	202,	202,	202,	203,	203,	203,	203,	204,	204,	204,	205,	205,			//160~175(high)
	205,	206,	206,	206,	207,	207,	207,	207,	208,	208,	208,	209,	209,	209,	209,	210,			//176~191(high)
	210,	210,	211,	211,	211,	211,	212,	212,	212,	213,	213,	213,	213,	214,	214,	214,			//192~207(high)
	215,	215,	215,	216,	216,	217,	217,	217,	218,	218,	218,	219,	219,	220,	220,	220,			//208~223(high)
	220,	221,	221,	221,	222,	223,	223,	224,	224,	225,	225,	226,	226,	227,	228,	228,			//224~239(high)
	229,	229,	230,	231,	231,	232,	233,	233,	234,	235,	235,	236,	237,	238,	239,	240,			//240~255(extra, bayer sensor data input x)		
	}	,	//13 custom range 16-255(based on 0.45)
	{
	2,	15,	22,	28,	34,	38,	42,	46,	49,	53,	56,	57,	60,	63,	65,	68,			//0~15(low)
	70,	72,	74,	75,	77,	79,	81,	82,	84,	85,	87,	89,	91,	92,	93,	95,			//16~31(low)
	97,	98,	100,	102,	103,	105,	106,	108,	109,	110,	111,	113,	114,	116,	117,	118,			//32~47(low-mid)
	120,	121,	122,	124,	125,	126,	127,	129,	129,	130,	131,	132,	134,	135,	136,	137,			//48~63(mid)
	138,	139,	140,	141,	142,	143,	144,	145,	146,	147,	148,	149,	149,	150,	151,	152,			//64~79(mid)
	153,	154,	155,	156,	157,	158,	159,	160,	160,	160,	161,	162,	163,	164,	165,	165,			//80~95(mid)
	165,	166,	167,	168,	168,	169,	170,	171,	172,	172,	173,	174,	174,	175,	176,	177,			//96~111(mid)
	177,	178,	179,	179,	180,	181,	181,	182,	183,	183,	183,	183,	184,	184,	185,	185,			//112~127(mid)
	186,	186,	187,	187,	188,	188,	189,	190,	190,	191,	191,	192,	192,	193,	193,	194,			//128~143(mid-high)
	194,	195,	195,	196,	196,	196,	197,	197,	198,	198,	199,	199,	199,	200,	200,	201,			//144~159(high)
	201,	201,	202,	202,	202,	202,	202,	203,	203,	203,	203,	204,	204,	204,	205,	205,			//160~175(high)
	205,	206,	206,	206,	207,	207,	207,	207,	208,	208,	208,	209,	209,	209,	209,	210,			//176~191(high)
	210,	210,	211,	211,	211,	211,	212,	212,	212,	213,	213,	213,	213,	214,	214,	214,			//192~207(high)
	215,	215,	215,	216,	216,	217,	217,	217,	218,	218,	218,	219,	219,	220,	220,	220,			//208~223(high)
	220,	221,	221,	221,	222,	223,	223,	224,	224,	225,	225,	226,	226,	227,	228,	228,			//224~239(high)
	229,	229,	230,	231,	231,	232,	233,	233,	234,	235,	235,	236,	237,	238,	239,	240,			//240~255(extra, bayer sensor data input x)			
	}	,	//14 custom range 16-255(based on 0.45)
	{
	2,	15,	22,	28,	34,	38,	42,	46,	49,	53,	56,	57,	60,	63,	65,	68,			//0~15(low)
	70,	72,	74,	75,	77,	79,	81,	82,	84,	85,	87,	89,	91,	92,	93,	95,			//16~31(low)
	97,	98,	100,	102,	103,	105,	106,	108,	109,	110,	111,	113,	114,	116,	117,	118,			//32~47(low-mid)
	120,	121,	122,	124,	125,	126,	127,	129,	129,	130,	131,	132,	134,	135,	136,	137,			//48~63(mid)
	138,	139,	140,	141,	142,	143,	144,	145,	146,	147,	148,	149,	149,	150,	151,	152,			//64~79(mid)
	153,	154,	155,	156,	157,	158,	159,	160,	160,	160,	161,	162,	163,	164,	165,	165,			//80~95(mid)
	165,	166,	167,	168,	168,	169,	170,	171,	172,	172,	173,	174,	174,	175,	176,	177,			//96~111(mid)
	177,	178,	179,	179,	180,	181,	181,	182,	183,	183,	183,	183,	184,	184,	185,	185,			//112~127(mid)
	186,	186,	187,	187,	188,	188,	189,	190,	190,	191,	191,	192,	192,	193,	193,	194,			//128~143(mid-high)
	194,	195,	195,	196,	196,	196,	197,	197,	198,	198,	199,	199,	199,	200,	200,	201,			//144~159(high)
	201,	201,	202,	202,	202,	202,	202,	203,	203,	203,	203,	204,	204,	204,	205,	205,			//160~175(high)
	205,	206,	206,	206,	207,	207,	207,	207,	208,	208,	208,	209,	209,	209,	209,	210,			//176~191(high)
	210,	210,	211,	211,	211,	211,	212,	212,	212,	213,	213,	213,	213,	214,	214,	214,			//192~207(high)
	215,	215,	215,	216,	216,	217,	217,	217,	218,	218,	218,	219,	219,	220,	220,	220,			//208~223(high)
	220,	221,	221,	221,	222,	223,	223,	224,	224,	225,	225,	226,	226,	227,	228,	228,			//224~239(high)
	229,	229,	230,	231,	231,	232,	233,	233,	234,	235,	235,	236,	237,	238,	239,	240,			//240~255(extra, bayer sensor data input x)		
	}	,	//15 custom range 16-255(based on 0.45)


/*
	2,	15,	23,	29,	35,	39,	43,	47,	50,	54,	57,	58,	61,	64,	66,	69,			//0~15(low)
	71,	73,	75,	76,	78,	80,	82,	84,	86,	87,	89,	91,	93,	94,	95,	97,			//16~31(low)
	99,	100,	102,	104,	105,	107,	108,	110,	111,	112,	113,	115,	116,	118,	119,	120,			//32~47(low-mid)
	122,	123,	124,	126,	127,	128,	129,	131,	131,	132,	133,	134,	136,	137,	138,	139,			//48~63(mid)
	140,	141,	142,	143,	144,	145,	146,	147,	148,	149,	150,	151,	151,	152,	153,	154,			//64~79(mid)
	155,	156,	157,	158,	159,	160,	161,	162,	163,	163,	164,	165,	166,	167,	168,	168,			//80~95(mid)
	168,	169,	170,	171,	171,	172,	173,	174,	175,	175,	176,	177,	177,	178,	179,	180,			//96~111(mid)
	180,	181,	182,	182,	183,	184,	184,	185,	186,	186,	186,	186,	187,	187,	188,	188,			//112~127(mid)
	189,	189,	190,	190,	191,	191,	192,	193,	193,	194,	194,	195,	195,	196,	196,	197,			//128~143(mid-high)
	197,	198,	198,	199,	199,	199,	200,	200,	201,	201,	202,	202,	202,	203,	203,	204,			//144~159(high)
	204,	204,	205,	205,	205,	205,	205,	206,	206,	206,	206,	207,	207,	207,	208,	208,			//160~175(high)
	208,	209,	209,	209,	210,	210,	210,	210,	211,	211,	211,	212,	212,	212,	212,	213,			//176~191(high)
	213,	213,	214,	214,	214,	214,	215,	215,	215,	216,	216,	216,	216,	217,	217,	217,			//192~207(high)
	218,	218,	218,	219,	219,	220,	220,	220,	221,	221,	221,	222,	222,	223,	223,	223,			//208~223(high)
	223,	224,	224,	224,	225,	226,	226,	227,	227,	228,	228,	229,	229,	230,	231,	231,			//224~239(high)
	232,	232,	233,	234,	234,	235,	236,	236,	237,	238,	238,	239,	240,	240,	241,	242,			//240~255(extra, bayer sensor data input x)	

	2,	15,	25,	31,	37,	42,	46,	50,	53,	57,	60,	62,	65,	68,	70,	73,			//0~15(low)
	75,	77,	79,	81,	83,	85,	87,	89,	91,	92,	94,	96,	98,	100,	101,	103,			//16~31(low)
	105,	106,	108,	110,	111,	113,	114,	116,	117,	119,	120,	122,	123,	125,	126,	127,			//32~47(low-mid)
	129,	130,	131,	133,	134,	135,	136,	138,	139,	140,	141,	142,	144,	145,	146,	147,			//48~63(mid)
	148,	149,	150,	151,	152,	153,	154,	155,	156,	158,	159,	160,	160,	161,	162,	163,			//64~79(mid)
	164,	165,	166,	167,	168,	169,	170,	171,	172,	172,	173,	174,	175,	176,	177,	177,			//80~95(mid)
	178,	179,	180,	181,	181,	182,	183,	184,	185,	185,	186,	187,	187,	188,	189,	190,			//96~111(mid)
	190,	191,	192,	192,	193,	194,	194,	195,	196,	196,	197,	197,	198,	198,	199,	199,			//112~127(mid)
	200,	200,	201,	201,	202,	202,	203,	204,	204,	205,	205,	206,	206,	207,	207,	208,			//128~143(mid-high)
	208,	209,	209,	210,	210,	210,	211,	211,	212,	212,	213,	213,	213,	214,	214,	215,			//144~159(high)
	215,	215,	216,	216,	216,	217,	217,	218,	218,	218,	218,	219,	219,	219,	220,	220,			//160~175(high)
	220,	221,	221,	221,	222,	222,	222,	222,	223,	223,	223,	224,	224,	224,	224,	225,			//176~191(high)
	225,	225,	226,	226,	226,	226,	227,	227,	227,	228,	228,	228,	228,	229,	229,	229,			//192~207(high)
	230,	230,	230,	231,	231,	232,	232,	232,	233,	233,	233,	234,	234,	235,	235,	236,			//208~223(high)
	236,	237,	237,	237,	238,	239,	239,	240,	240,	241,	241,	242,	242,	243,	244,	244,			//224~239(high)
	245,	245,	246,	247,	247,	248,	249,	249,	250,	251,	251,	252,	253,	253,	254,	255,			//240~255(extra, bayer sensor data input x)	

	2,	8,	16,	22,	27,	32,	36,	39,	43,	46,	49,	51,	54,	58,	62,	65,			//0~15(low)
	68,	71,	74,	77,	80,	82,	85,	87,	89,	91,	93,	95,	97,	99,	101,	103,			//16~31(low)
	
	2,	4,	9,	14,	19,	24,	29,	33,	38,	42,	46,	51,	54,	58,	62,	65,			//0~15(low)
	68,	71,	74,	77,	80,	82,	85,	87,	89,	91,	93,	95,	97,	99,	101,	103,			//16~31(low)
	105,	106,	108,	110,	111,	113,	114,	116,	117,	119,	120,	122,	123,	125,	126,	127,			//32~47(low-mid)
	129,	130,	131,	133,	134,	135,	136,	138,	139,	140,	141,	142,	144,	145,	146,	147,			//48~63(mid)
	148,	149,	150,	151,	152,	153,	154,	155,	156,	158,	159,	160,	160,	161,	162,	163,			//64~79(mid)
	164,	165,	166,	167,	168,	169,	170,	171,	172,	172,	173,	174,	175,	176,	177,	177,			//80~95(mid)
	178,	179,	180,	181,	181,	182,	183,	184,	185,	185,	186,	187,	187,	188,	189,	190,			//96~111(mid)
	190,	191,	192,	192,	193,	194,	194,	195,	196,	196,	197,	198,	198,	199,	200,	200,			//112~127(mid)
	201,	201,	202,	203,	203,	204,	204,	205,	206,	206,	207,	207,	208,	208,	209,	209,			//128~143(mid-high)
	210,	211,	211,	212,	212,	213,	213,	214,	214,	215,	215,	216,	216,	217,	217,	218,			//144~159(high)
	218,	219,	219,	220,	220,	221,	221,	222,	222,	223,	223,	223,	224,	224,	225,	225,			//160~175(high)
	226,	226,	227,	227,	227,	228,	228,	229,	229,	230,	230,	230,	231,	231,	232,	232,			//176~191(high)
	232,	233,	233,	234,	234,	234,	235,	235,	235,	236,	236,	237,	237,	237,	238,	238,			//192~207(high)
	238,	239,	239,	240,	240,	240,	241,	241,	241,	242,	242,	242,	243,	243,	243,	244,			//208~223(high)
	244,	244,	245,	245,	246,	246,	246,	247,	247,	247,	248,	248,	248,	249,	249,	249,			//224~239(high)
	250,	250,	251,	251,	251,	252,	252,	252,	253,	253,	253,	254,	254,	254,	255,	255,			//240~255(extra, bayer sensor data input x)	
	{
	2,	4,	8,	15,	21,	26,	31,	35,	39,	43,	47,	50,	53,	56,	59,	62,			//0~15(low)
	65,	68,	70,	73,	75,	77,	80,	82,	84,	86,	88,	90,	92,	94,	96,	98,			//16~31(low
	100,	102,	103,	105,	107,	109,	110,	112,	114,	115,	117,	118,	120,	121,	123,	124,			//32~47(low-mid)
	126,	127,	129,	130,	132,	133,	134,	136,	137,	138,	140,	141,	142,	144,	145,	146,			//48~63(mid)
	147,	149,	150,	151,	152,	154,	155,	156,	157,	158,	159,	161,	162,	163,	164,	165,			//64~79(mid)
	166,	167,	168,	170,	171,	172,	173,	174,	175,	176,	177,	178,	179,	180,	181,	182,			//80~95(mid)
	183,	184,	185,	186,	187,	188,	189,	190,	191,	192,	193,	194,	195,	196,	197,	197,			//96~111(mid)
	198,	199,	200,	201,	202,	203,	204,	205,	206,	206,	207,	208,	209,	210,	211,	212,			//112~127(mid)
	213,	213,	214,	215,	216,	217,	218,	218,	219,	220,	221,	222,	223,	223,	224,	225,			//128~143(mid-high)
	226,	227,	227,	228,	229,	230,	231,	231,	232,	233,	234,	234,	235,	236,	236,	237,			//144~159(high)
	237,	238,	239,	239,	240,	240,	241,	241,	242,	242,	243,	243,	244,	244,	245,	245,			//160~175(high)
	246,	246,	246,	246,	247,	247,	247, 248,	248,	248,	248,	248,	248,	248,	248,	248,			//176~191(high)
	249,	249,	249,	249,	249,	249,	249,	250,	250,	250,	250,	250,	250,	250,	250,	250,			//192~207(high)
	251,	251,	251,	251,	251,	251,	252,	251,	252,	252,	252,	252,	252,	252,	252,	252,			//208~223(high)
	253,	253,	253,	253,	253,	253,	253,	253,	254,	254,	254,	254,	254,	254,	254,	254,			//224~239(high)
	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255			//240~255(extra, bayer sensor data input x)
	}	,	//15 custom range 16-235(based on 0.45)
*/
#else
	{
	2	,8		,16		,22		,27		,32		,36		,39		,
	43	,46		,49		,51		,54		,56		,59		,61		,
	63	,66		,68		,70		,72		,73		,75		,77		,
	79	,81		,82		,84		,86		,87		,89		,90		,
	92	,93		,95		,96		,97		,99		,100	,102	,
	103	,104	,105	,107	,108	,109	,110	,112	,
	113	,114	,115	,116	,118	,119	,120	,121	,
	122	,123	,124	,125	,126	,127	,128	,129	,
	130	,131	,132	,133	,134	,135	,136	,137	,
	138	,139	,140	,141	,142	,143	,144	,145	,
	146	,147	,147	,148	,149	,150	,151	,152	,
	153	,153	,154	,155	,156	,157	,158	,158	,
	159	,160	,161	,162	,163	,163	,164	,165	,
	166	,166	,167	,168	,169	,169	,170	,171	,
	172	,172	,173	,174	,175	,175	,176	,177	,
	178	,178	,179	,180	,180	,181	,182	,183	,
	183	,184	,185	,185	,186	,187	,187	,188	,
	189	,189	,190	,191	,191	,192	,193	,193	,
	194	,195	,195	,196	,197	,197	,198	,198	,
	199	,200	,200	,201	,202	,202	,203	,203	,
	204	,205	,205	,206	,207	,207	,208	,208	,
	209	,210	,210	,211	,211	,212	,212	,213	,
	214	,214	,215	,215	,216	,217	,217	,218	,
	218	,219	,219	,220	,221	,221	,222	,222	,
	223	,223	,224	,224	,225	,226	,226	,227	,
	227	,228	,228	,229	,229	,230	,230	,231	,
	231	,232	,232	,233	,234	,234	,235	,235	,
	236	,236	,237	,237	,238	,238	,239	,239	,
	240	,240	,241	,241	,242	,242	,243	,243	,
	244	,244	,245	,245	,246	,246	,247	,247	,
	248	,248	,249	,249	,250	,250	,251	,251	,
	252	,252	,253	,253	,254	,254	,255	,255
	}	,	//0.45 default
	{
	2	,8		,16		,22		,27		,32		,36		,39		,
	43	,46		,49		,51		,54		,56		,59		,61		,
	63	,66		,68		,70		,72		,73		,75		,77		,
	79	,81		,82		,84		,86		,87		,89		,90		,
	92	,93		,95		,96		,97		,99		,100	,102	,
	103	,104	,105	,107	,108	,109	,110	,112	,
	113	,114	,115	,116	,118	,119	,120	,121	,
	122	,123	,124	,125	,126	,127	,128	,129	,
	130	,131	,132	,133	,134	,135	,136	,137	,
	138	,139	,140	,141	,142	,143	,144	,145	,
	146	,147	,147	,148	,149	,150	,151	,152	,
	153	,153	,154	,155	,156	,157	,158	,158	,
	159	,160	,161	,162	,163	,163	,164	,165	,
	166	,166	,167	,168	,169	,169	,170	,171	,
	172	,172	,173	,174	,175	,175	,176	,177	,
	178	,178	,179	,180	,180	,181	,182	,183	,
	183	,184	,185	,185	,186	,187	,187	,188	,
	189	,189	,190	,191	,191	,192	,193	,193	,
	194	,195	,195	,196	,197	,197	,198	,198	,
	199	,200	,200	,201	,202	,202	,203	,203	,
	204	,205	,205	,206	,207	,207	,208	,208	,
	209	,210	,210	,211	,211	,212	,212	,213	,
	214	,214	,215	,215	,216	,217	,217	,218	,
	218	,219	,219	,220	,221	,221	,222	,222	,
	223	,223	,224	,224	,225	,226	,226	,227	,
	227	,228	,228	,229	,229	,230	,230	,231	,
	231	,232	,232	,233	,234	,234	,235	,235	,
	236	,236	,237	,237	,238	,238	,239	,239	,
	240	,240	,241	,241	,242	,242	,243	,243	,
	244	,244	,245	,245	,246	,246	,247	,247	,
	248	,248	,249	,249	,250	,250	,251	,251	,
	252	,252	,253	,253	,254	,254	,255	,255
	}	,	//14 custom range 16-255(based on 0.45)
	{
	2	,8		,16		,22		,27		,32		,36		,39		,
	43	,46		,49		,51		,54		,56		,59		,61		,
	63	,66		,68		,70		,72		,73		,75		,77		,
	79	,81		,82		,84		,86		,87		,89		,90		,
	92	,93		,95		,96		,97		,99		,100	,102	,
	103	,104	,105	,107	,108	,109	,110	,112	,
	113	,114	,115	,116	,118	,119	,120	,121	,
	122	,123	,124	,125	,126	,127	,128	,129	,
	130	,131	,132	,133	,134	,135	,136	,137	,
	138	,139	,140	,141	,142	,143	,144	,145	,
	146	,147	,147	,148	,149	,150	,151	,152	,
	153	,153	,154	,155	,156	,157	,158	,158	,
	159	,160	,161	,162	,163	,163	,164	,165	,
	166	,166	,167	,168	,169	,169	,170	,171	,
	172	,172	,173	,174	,175	,175	,176	,177	,
	178	,178	,179	,180	,180	,181	,182	,183	,
	183	,184	,185	,185	,186	,187	,187	,188	,
	189	,189	,190	,191	,191	,192	,193	,193	,
	194	,195	,195	,196	,197	,197	,198	,198	,
	199	,200	,200	,201	,202	,202	,203	,203	,
	204	,205	,205	,206	,207	,207	,208	,208	,
	209	,210	,210	,211	,211	,212	,212	,213	,
	214	,214	,215	,215	,216	,217	,217	,218	,
	218	,219	,219	,220	,221	,221	,222	,222	,
	223	,223	,224	,224	,225	,226	,226	,227	,
	227	,228	,228	,229	,229	,230	,230	,231	,
	231	,232	,232	,233	,234	,234	,235	,235	,
	236	,236	,237	,237	,238	,238	,239	,239	,
	240	,240	,241	,241	,242	,242	,243	,243	,
	244	,244	,245	,245	,246	,246	,247	,247	,
	248	,248	,249	,249	,250	,250	,251	,251	,
	252	,252	,253	,253	,254	,254	,255	,255
	}	,	//15 custom range 16-235(based on 0.45)

#endif
	//thermo
	// {0	,0		,0		,0		,0		,0		,0		,0		,
	// 0	,0		,0		,0		,0		,0		,0		,0		,
	// 0	,0		,0		,0		,0		,0		,0		,0		,
	// 0	,0		,0		,0		,0		,0		,0		,0		,
	// 0	,0		,0		,0		,0		,0		,0		,0		,
	// 0	,0		,0		,0		,0		,0		,0		,0		,
	// 0	,0		,0		,0		,0		,0		,0		,0		,
	// 0	,0		,0		,0		,0		,0		,0		,0		,
	// 0	,0		,0		,0		,0		,0		,0		,0		,
	// 0	,0		,0		,0		,0		,0		,0		,0		,
	// 0	,0		,0		,0		,0		,0		,0		,0		,
	// 0	,0		,0		,0		,0		,0		,0		,0		,
	// 0	,0		,0		,0		,0		,0		,0		,20		,
	// 20	,20		,20		,40		,40		,40		,40		,60		,
	// 60	,60	,60	,80	,80	,80	,80	,100	,
	// 100	,100	,100	,120	,120	,120	,120	,140	,
	// 140	,140	,140	,160	,160	,160	,160	,180	,
	// 180	,180	,180	,200	,200	,200	,200	,220	,
	// 220	,220	,220	,240	,240	,240	,240	,250	,
	// 250	,255	,255	,255	,255	,255	,255	,255	,
	// 255	,255	,255	,255	,255	,255	,255	,255	,
	// 255	,255	,255	,255	,255	,255	,255	,255	,
	// 255	,255	,255	,255	,255	,255	,255	,255	,
	// 255	,255	,255	,255	,255	,255	,255	,255	,
	// 255	,255	,255	,255	,255	,255	,255	,255	,
	// 255	,255	,255	,255	,255	,255	,255	,255	,
	// 255	,255	,255	,255	,255	,255	,255	,255	,
	// 255	,255	,255	,255	,255	,255	,255	,255	,
	// 255	,255	,255	,255	,255	,255	,255	,255	,
	// 255	,255	,255	,255	,255	,255	,255	,255	,
	// 255	,255	,255	,255	,255	,255	,255	,255	,
	// 255	,255	,255	,255	,255	,255	,255	,255	
	// }, 	//R - 16 straight line
	{
	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
	0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 5, 7, 9, 12, 14, 17, 
	19, 22, 25, 28, 30, 33, 36, 39, 43, 46, 49, 52, 56, 59, 62, 66, 
	69, 73, 76, 80, 84, 87, 91, 94, 98, 102, 106, 109, 113, 117, 121, 124, 
	128, 132, 135, 139, 143, 146, 150, 154, 157, 161, 164, 168, 171, 175, 178, 182, 
	185, 188, 191, 195, 198, 201, 204, 207, 209, 212, 215, 218, 220, 223, 225, 227, 
	230, 232, 234, 236, 238, 240, 242, 243, 245, 247, 248, 250, 251, 253, 254, 255, 
	255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 
	255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 
	255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 
	255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255,	
	}, //R - 16 smooth curve
	// {6	,6		,6		,6		,18		,18		,18		,18		,
	// 30	,30		,30		,30		,43		,43		,43		,43		,
	// 56	,56		,56		,56		,70		,70		,70		,70		,
	// 83	,83		,83		,83		,97		,97		,97		,97		,
	// 110	,110		,110		,110		,123		,123		,123		,123		,
	// 137	,137		,137		,137		,150		,150		,150		,150		,
	// 163	,163		,163		,163		,177		,177		,177		,177		,
	// 190	,190		,190		,190		,203		,203		,203		,203		,
	// 216	,216		,216		,216		,230		,230		,230		,230		,
	// 243	,243		,243		,243		,250		,250		,255		,255		,
	// 255	,255		,255		,255		,255		,255		,255		,255		,
	// 255	,255		,255		,255		,255		,255		,255		,255		,
	// 255	,255		,255		,255		,255		,255		,255		,250		,
	// 250	,243		,243		,243		,243		,230		,230		,230		,
	// 230	,216		,216		,203		,203		,203		,203		,190		,
	// 190	,190		,190		,177		,177		,177		,177		,163		,
	// 163	,163	,163	,150	,150	,150	,150	,137	,
	// 137	,137	,137	,123	,123	,123	,123	,110	,
	// 110	,110	,110	,97	,97	,97	,97	,83	,
	// 83	,83	,83	,70	,70	,70	,70	,56	,
	// 56	,56	,56	,43	,43	,43	,43	,30	,
	// 30	,30	,30	,18	,18	,18	,18	,6	,
	// 6	,6	,6	,0	,0	,0	,0	,0	,
	// 0	,0	,0	,0	,0	,0	,0	,0	,
	// 0	,0	,0	,0	,0	,0	,0	,0	,
	// 0	,0	,0	,0	,0	,0	,0	,0	,
	// 0	,0	,0	,0	,0	,0	,0	,0	,
	// 0	,0	,0	,0	,0	,0	,0	,0	,
	// 0	,0	,0	,0	,0	,0	,30	,30	,
	// 30	,30	,60	,60	,90	,90	,90	,90	,
	// 120	,120	,150	,150	,150	,150	,180	,180	,
	// 200	,200	,200	,200	,230	,230	,255	,255
	// }, 	//G - 17 straight line
	{
	0, 5, 10, 15, 20, 25, 30, 34, 39, 44, 49, 54, 59, 64, 69, 74, 
	79, 83, 88, 93, 97, 102, 107, 111, 116, 120, 125, 129, 133, 138, 142, 146, 
	150, 154, 158, 162, 166, 170, 174, 177, 181, 185, 188, 192, 195, 198, 201, 204, 
	207, 210, 213, 216, 219, 221, 224, 226, 228, 230, 232, 234, 236, 238, 240, 241, 
	243, 244, 245, 246, 247, 248, 249, 249, 250, 250, 250, 251, 251, 250, 250, 250, 
	249, 248, 247, 247, 245, 244, 243, 242, 240, 239, 237, 235, 233, 231, 229, 227, 
	225, 222, 220, 217, 215, 212, 209, 207, 204, 201, 198, 195, 192, 189, 186, 182, 
	179, 176, 173, 169, 166, 162, 159, 155, 152, 148, 145, 141, 138, 134, 131, 127, 
	124, 120, 116, 113, 109, 106, 102, 99, 95, 92, 88, 85, 82, 78, 75, 72, 
	68, 65, 62, 59, 56, 53, 50, 47, 44, 42, 39, 36, 34, 32, 29, 27, 
	25, 23, 21, 19, 17, 15, 13, 12, 10, 9, 8, 7, 6, 5, 4, 4, 
	3, 3, 3, 2, 2, 3, 3, 3, 4, 5, 5, 6, 7, 8, 10, 11, 
	12, 14, 16, 18, 19, 22, 24, 26, 28, 31, 33, 36, 38, 41, 44, 47, 
	50, 53, 56, 60, 63, 66, 70, 73, 77, 81, 84, 88, 92, 96, 100, 104, 
	108, 113, 117, 121, 125, 130, 134, 139, 143, 148, 152, 157, 162, 166, 171, 176, 
	181, 185, 190, 195, 200, 205, 210, 215, 220, 225, 230, 235, 240, 245, 250, 255,		
	}, //G - 17 smooth curve
	// {255	,255		,255		,255		,243		,243		,233		,233		,
	 // 233		,233		,220		,220		,220		,220		,207		,207		,
	 // 207		,207		,193		,193		,193		,193		,180		,180		,
	 // 180		,180		,167		,167		,167		,167		,153		,153		,
	 // 153		,153		,140		,140		,140		,140		,127		,127		,
	 // 127		,127		,113		,113		,113		,113		,100		,100		,
	 // 100		,100		,87		,87		,87		,87		,73		,73		,
	 // 73		,73		,60		,60		,60		,60		,46		,46		,
	 // 46		,46		,34		,34		,34		,34		,22		,22		,
	 // 22		,22		,10		,10		,10		,10		,0		,0		,
	 // 0	,0	,0	,0	,0	,0	,0	,0	,
	 // 0	,0	,0	,0	,0	,0	,0	,0	,
	 // 0	,0	,0	,0	,0	,0	,0	,0	,
	 // 0	,0	,0	,0	,0	,0	,0	,0	,
	 // 0	,0	,0	,0	,0	,0	,0	,0	,
	 // 0	,0	,0	,0	,0	,0	,0	,0	,
	 // 0	,0	,0	,0	,0	,0	,0	,0	,
	 // 0	,0	,0	,0	,0	,0	,0	,0	,
	 // 0	,0	,0	,0	,0	,0	,0	,0	,
	 // 0	,0	,0	,0	,0	,0	,0	,0	,
	 // 0	,0	,0	,0	,0	,0	,0	,0	,
	 // 0	,0	,0	,0	,0	,0	,0	,0	,
	 // 0	,0	,10	,10	,10	,10	,22	,22	,
	 // 22	,22	,30	,30	,30	,30	,40	,40	,
	 // 53	,53	,53	,53	,63	,63	,63	,63	,
	 // 73	,73	,83	,83	,83	,83	,93	,93	,
	 // 103	,103	,103	,103	,113	,113	,123	,123	,
	 // 133	,133	,133	,133	,143	,143	,153	,153	,
	 // 153	,153	,163	,163	,163	,163	,173	,173	,
	 // 183	,183	,183	,183	,193	,193	,203	,203	,
	 // 203	,203	,213	,213	,223	,223	,223	,223	,
	 // 230	,230	,243	,243	,243 ,243	,255	,255
	// } 	//B - 18 straight line
	{
	253, 249, 246, 242, 238, 234, 231, 227, 223, 219, 216, 212, 208, 204, 201, 197,
	193, 190, 186, 182, 179, 175, 171, 168, 164, 160, 157, 153, 150, 146, 143, 139,
	136, 132, 129, 125, 122, 118, 115, 112, 108, 105, 102, 98, 95, 92, 89, 85,
	82, 79, 76, 73, 70, 67, 64, 61, 58, 55, 52, 49, 46, 44, 41, 38,
	36, 33, 30, 28, 25, 23, 20, 18, 15, 13, 11, 9, 6, 4, 2, 0,
	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
	0, 0, 1, 4, 6, 8, 10, 13, 15, 17, 20, 22, 25, 28, 30, 33,
	35, 38, 41, 44, 47, 49, 52, 55, 58, 61, 64, 67, 70, 74, 77, 80,
	83, 86, 90, 93, 96, 100, 103, 106, 110, 113, 117, 120, 124, 127, 131, 134,
	138, 141, 145, 149, 152, 156, 160, 163, 167, 171, 174, 178, 182, 186, 189, 193,
	197, 201, 205, 208, 212, 216, 220, 224, 228, 231, 235, 239, 243, 247, 251, 255,	
	} //B - 18 smooth curve

};	
	
	
	
	
	
	
ROMDATA BYTE gamma_value_table[18][32] = 
{
    {0x04, 0x08, 0x0c, 0x10, 0x14, 0x18, 0x1c, 0x20,   0x28, 0x30, 0x38, 0x40, 0x48, 0x50, 0x58, 0x60,  
     0x68, 0x70, 0x78, 0x80, 0x88, 0x90, 0x98, 0xa0,   0xa8, 0xb0, 0xb8, 0xc0, 0xd0, 0xe0, 0xf0, 0xff}, //1.0  
    {0x05, 0x0a, 0x0e, 0x12, 0x17, 0x1b, 0x1f, 0x23,   0x2c, 0x34, 0x3c, 0x45, 0x4d, 0x55, 0x5d, 0x65, 
     0x6d, 0x75, 0x7d, 0x84, 0x8c, 0x94, 0x9c, 0xa4,   0xac, 0xb3, 0xbb, 0xc3, 0xd2, 0xe1, 0xf1, 0xff}, //0.95 - power law gamma
    {0x06, 0x0b, 0x10, 0x15, 0x1a, 0x1e, 0x23, 0x27,   0x30, 0x39, 0x41, 0x49, 0x52, 0x5a, 0x62, 0x6a, 
     0x72, 0x7a, 0x81, 0x89, 0x91, 0x98, 0xa0, 0xa8,   0xaf, 0xb7, 0xbe, 0xc6, 0xd4, 0xe3, 0xf1, 0xff}, //0.90 - power law gamma
    {0x07, 0x0d, 0x13, 0x18, 0x1d, 0x22, 0x27, 0x2c,   0x35, 0x3e, 0x46, 0x4f, 0x57, 0x5f, 0x67, 0x6f, 
     0x77, 0x7f, 0x86, 0x8e, 0x95, 0x9d, 0xa4, 0xac,   0xb3, 0xba, 0xc1, 0xc8, 0xd6, 0xe4, 0xf2, 0xff}, //0.85 - power law gamma
    {0x09, 0x10, 0x16, 0x1c, 0x21, 0x27, 0x2c, 0x30,   0x3a, 0x43, 0x4c, 0x54, 0x5d, 0x65, 0x6d, 0x75, 
     0x7c, 0x84, 0x8c, 0x93, 0x9a, 0xa1, 0xa9, 0xb0,   0xb7, 0xbe, 0xc4, 0xcb, 0xd9, 0xe6, 0xf3, 0xff}, //0.80 - power law gamma
    {0x0b, 0x13, 0x1a, 0x20, 0x26, 0x2b, 0x31, 0x36,   0x40, 0x49, 0x52, 0x5a, 0x63, 0x6b, 0x73, 0x7b, 
     0x82, 0x8a, 0x91, 0x98, 0x9f, 0xa6, 0xad, 0xb4,   0xba, 0xc1, 0xc8, 0xce, 0xdb, 0xe7, 0xf4, 0xff}, //0.75 - power law gamma
    {0x01, 0x09, 0x11, 0x18, 0x1F, 0x25, 0x2B, 0x30,   0x3B, 0x45, 0x4F, 0x58, 0x60, 0x69, 0x71, 0x79, 
     0x81, 0x89, 0x90, 0x98, 0x9F, 0xA6, 0xAD, 0xB4,   0xBA, 0xC1, 0xC8, 0xCE, 0xDB, 0xE7, 0xF3, 0xFF}, //0.70 - 6 sRGB gamma
    {0x04, 0x0E, 0x16, 0x1E, 0x25, 0x2B, 0x31, 0x37,   0x42, 0x4C, 0x56, 0x5F, 0x68, 0x70, 0x78, 0x80, 
     0x88, 0x8F, 0x96, 0x9D, 0xA4, 0xAB, 0xB2, 0xB8,   0xBF, 0xC5, 0xCB, 0xD1, 0xDD, 0xE9, 0xF4, 0xFF}, //0.65 - 7 sRGB gamma 
    {0x08, 0x13, 0x1C, 0x25, 0x2C, 0x34, 0x3B, 0x41,   0x47, 0x53, 0x5D, 0x66, 0x6F, 0x78, 0x80, 0x87, 
     0x8F, 0x96, 0x9D, 0xA3, 0xAA, 0xB0, 0xB7, 0xBD,   0xC3, 0xC9, 0xCF, 0xD4, 0xE0, 0xEA, 0xF5, 0xFF}, //0.60 - 8 sRGB gamma 
    {0x0D, 0x1A, 0x24, 0x2C, 0x34, 0x3B, 0x41, 0x47,   0x53, 0x5D, 0x66, 0x6F, 0x78, 0x80, 0x87, 0x8F,
     0x96, 0x9D, 0xA3, 0xAA, 0xB0, 0xB6, 0xBC, 0xC2,   0xC7, 0xCD, 0xD2, 0xD8, 0xE2, 0xEC, 0xF6, 0xFF}, //0.55 - 9 sRGB gamma 
    {0x13, 0x21, 0x2C, 0x35, 0x3D, 0x44, 0x4B, 0x51,   0x5C, 0x66, 0x70, 0x78, 0x80, 0x88, 0x90, 0x97, 
     0x9D, 0xA4, 0xAA, 0xB0, 0xB6, 0xBC, 0xC1, 0xC7,   0xCC, 0xD1, 0xD6, 0xDB, 0xE4, 0xEE, 0xF6, 0xFF}, //0.50 - 10 sRGB gamma 
    {0x1B, 0x2A, 0x35, 0x3F, 0x47, 0x4E, 0x55, 0x5B,   0x66, 0x70, 0x79, 0x82, 0x8A, 0x91, 0x98, 0x9F,  
     0xA5, 0xAB, 0xB1, 0xB7, 0xBC, 0xC1, 0xC7, 0xCC,   0xD0, 0xD5, 0xDA, 0xDE, 0xE7, 0xEF, 0xF7, 0xFF}, //0.45 - 11 sRGB gamma 
    {0x25, 0x35, 0x41, 0x4A, 0x53, 0x5A, 0x61, 0x67,   0x72, 0x7B, 0x84, 0x8C, 0x94, 0x9B, 0xA1, 0xA7, 
     0xAD, 0xB3, 0xB8, 0xBE, 0xC3, 0xC8, 0xCC, 0xD1,   0xD5, 0xD9, 0xDE, 0xE2, 0xE9, 0xF1, 0xF8, 0xFF}, //0.40 - 12 sRGB gamma
    {0x30, 0x42, 0x4E, 0x58, 0x60, 0x67, 0x6E, 0x74,   0x7E, 0x87, 0x90, 0x97, 0x9E, 0xA5, 0xAB, 0xB1, 
     0xB6, 0xBB, 0xC0, 0xC5, 0xC9, 0xCE, 0xD2, 0xD6,   0xDA, 0xDE, 0xE1, 0xE5, 0xEC, 0xF3, 0xF9, 0xFF},  //0.35 - 13 sRGB gamma
    {0x18, 0x2b, 0x38, 0x44, 0x4e, 0x56, 0x5c, 0x64,   0x72, 0x7e, 0x87, 0x8f, 0x96, 0x9d, 0xa3, 0xa9, 
     0xaf, 0xb4, 0xba, 0xbf, 0xc4, 0xc9, 0xcd, 0xd2,   0xd6, 0xda, 0xde, 0xe2, 0xea, 0xf1, 0xf9, 0xff},  //custom - ktnc zoom
    {0x1E, 0x2C, 0x36, 0x3F, 0x47, 0x4E, 0x55, 0x5B,   0x66, 0x70, 0x79, 0x82, 0x8A, 0x91, 0x98, 0x9F,  
     0xA5, 0xAB, 0xB1, 0xB7, 0xBC, 0xC1, 0xC7, 0xCC,   0xD0, 0xD5, 0xDA, 0xDE, 0xE7, 0xEF, 0xF7, 0xFF}, //0.45 - 11 sRGB gamma 
    {0x04, 0x08, 0x0c, 0x10, 0x14, 0x18, 0x1c, 0x20,   0x28, 0x30, 0x38, 0x40, 0x48, 0x50, 0x58, 0x60,  
     0x68, 0x70, 0x78, 0x80, 0x88, 0x90, 0x98, 0xa0,   0xa8, 0xb0, 0xb8, 0xc0, 0xd0, 0xe0, 0xf0, 0xff},  //dwdr - auto/on
    {0x48, 0x58, 0x64, 0x6a, 0x71, 0x78, 0x7e, 0x83,   0x8d, 0x95, 0x9d, 0xa4, 0xaa, 0xb0, 0xb5, 0xbb, 
     0xbf, 0xc4, 0xc8, 0xcd, 0xd1, 0xd4, 0xd8, 0xdc,   0xdf, 0xe2, 0xe6, 0xe9, 0xef, 0xf5, 0xfa, 0xff}  //dwdr - natural
};
#endif	//end __USE_GAMMA_BYTEDATA__

#endif 	// MDIN-i51X (i510, i540, i550)



// for thermography
#if __USE_GAMMA_BYTEDATA__
ROMDATA BYTE gamma_table_thermo_r[32] = 
{
	120, 129, 89, 107, 48, 69, 14, 28,
	1, 6, 0, 0, 3, 0, 30, 12,  
	95, 58, 177, 136, 234, 211, 254, 247,
	255, 255, 255, 255, 255, 255, 255, 255, 
};
ROMDATA BYTE gamma_table_thermo_g[32] = 
{
	37, 40, 28, 33, 29, 26, 67, 42,
	143, 103, 215, 182, 249, 236, 255, 254,  
	255, 255, 248, 253, 240, 228, 211, 191,
	139, 167, 82, 110, 35, 56, 10, 20, 
};
ROMDATA BYTE gamma_table_thermo_b[32] = 
{
	228, 230, 233, 237, 241, 245, 249, 252,
	252, 247, 234, 211, 177, 136, 95, 58,  
	30, 12, 3, 0, 0, 0, 0, 0,
	0, 0, 0, 0, 0, 0, 0, 0, 
};
#else
ROMDATA WORD gamma_table_thermo_r[16] = 
{
    MAKEWORD(129,120),MAKEWORD(107,89),MAKEWORD(69,48),MAKEWORD(28,14),
    MAKEWORD(6,1),MAKEWORD(0,0),MAKEWORD(0,3),MAKEWORD(12,30),
    MAKEWORD(58,95),MAKEWORD(136,177),MAKEWORD(211,234),MAKEWORD(247,254),
    MAKEWORD(255,255),MAKEWORD(255,255),MAKEWORD(255,255),MAKEWORD(255,255)
};

ROMDATA WORD gamma_table_thermo_g[16] = 
{
    MAKEWORD(40,37),MAKEWORD(33,28),MAKEWORD(26,29),MAKEWORD(42,67),
    MAKEWORD(103,143),MAKEWORD(182,215),MAKEWORD(236,249),MAKEWORD(254,255),
    MAKEWORD(255,255),MAKEWORD(253,248),MAKEWORD(240,228),MAKEWORD(211,191),
    MAKEWORD(167,139),MAKEWORD(110,82),MAKEWORD(56,35),MAKEWORD(20,10)
};

ROMDATA WORD gamma_table_thermo_b[16] = 
{
    MAKEWORD(228,230),MAKEWORD(233,237),MAKEWORD(241,245),MAKEWORD(249,252),
    MAKEWORD(252,247),MAKEWORD(234,211),MAKEWORD(177,136),MAKEWORD(95,58),
    MAKEWORD(30,12),MAKEWORD(3,0),MAKEWORD(0,0),MAKEWORD(0,0),
    MAKEWORD(0,0),MAKEWORD(0,0),MAKEWORD(0,0),MAKEWORD(0,0)
};
#endif


#if defined(__USE_MDIN_i510__) || defined(__USE_MDIN_i540__) || defined(__USE_MDIN_i550__) 	// i510, i540, i550
ROMDATA BYTE RGBgamma_contrast_table[23][256] = 
{
	{
	16,	17,	19,	20,	22,	23,	25,	26,	28,	29,	31,	32,	34,	35,	37,	38,	
	40,	41,	43,	44,	45,	47,	48,	50,	51,	53,	54,	55,	57,	58,	59,	61,	
	62,	63,	65,	66,	67,	69,	70,	71,	72,	73,	75,	76,	77,	78,	79,	80,	
	81,	82,	83,	85,	86,	87,	87,	88,	89,	90,	91,	92,	93,	94,	94,	95,	
	96,	97,	97,	98,	99,	100,	100,	101,	102,	102,	103,	103,	104,	105,	105,	106,	
	106,	107,	107,	108,	108,	109,	109,	109,	110,	110,	111,	111,	112,	112,	112,	113,	
	113,	113,	114,	114,	114,	115,	115,	115,	116,	116,	116,	116,	117,	117,	117,	118,	
	118,	118,	118,	119,	119,	119,	119,	120,	120,	120,	120,	121,	121,	121,	121,	121,	
	122,	122,	122,	122,	123,	123,	123,	123,	124,	124,	124,	125,	125,	125,	125,	126,	
	126,	126,	127,	127,	127,	128,	128,	128,	129,	129,	129,	130,	130,	131,	131,	131,	
	132,	132,	133,	133,	134,	134,	135,	135,	136,	136,	137,	138,	138,	139,	139,	140,	
	141,	141,	142,	143,	143,	144,	145,	145,	146,	147,	148,	148,	149,	150,	151,	152,	
	153,	153,	154,	155,	156,	157,	158,	159,	160,	161,	161,	162,	163,	164,	165,	166,	
	167,	168,	169,	170,	171,	172,	173,	174,	175,	176,	177,	179,	180,	181,	182,	183,	
	184,	185,	186,	187,	188,	189,	191,	192,	193,	194,	195,	196,	197,	199,	200,	201,	
	202,	203,	204,	205,	207,	208,	209,	210,	211,	212,	214,	215,	216,	217,	218,	220,	
	}	,	//table no 0 : -contrast 10
	{
	16,	17,	18,	20,	21,	22,	24,	25,	27,	28,	29,	31,	32,	33,	35,	36,	
	38,	39,	40,	42,	43,	44,	46,	47,	48,	50,	51,	52,	53,	55,	56,	57,	
	58,	60,	61,	62,	63,	64,	66,	67,	68,	69,	70,	71,	72,	73,	74,	76,	
	77,	78,	79,	80,	81,	82,	82,	83,	84,	85,	86,	87,	88,	89,	89,	90,	
	91,	92,	93,	93,	94,	95,	95,	96,	97,	97,	98,	99,	99,	100,	101,	101,	
	102,	102,	103,	103,	104,	105,	105,	106,	106,	107,	107,	108,	108,	109,	109,	109,	
	110,	110,	111,	111,	112,	112,	113,	113,	113,	114,	114,	115,	115,	115,	116,	116,	
	116,	117,	117,	118,	118,	118,	119,	119,	119,	120,	120,	120,	121,	121,	121,	122,	
	122,	122,	123,	123,	124,	124,	124,	125,	125,	125,	126,	126,	127,	127,	127,	128,	
	128,	129,	129,	129,	130,	130,	131,	131,	132,	132,	132,	133,	133,	134,	134,	135,	
	135,	136,	136,	137,	137,	138,	139,	139,	140,	140,	141,	142,	142,	143,	143,	144,	
	145,	145,	146,	147,	147,	148,	149,	150,	150,	151,	152,	153,	153,	154,	155,	156,	
	157,	158,	158,	159,	160,	161,	162,	163,	164,	164,	165,	166,	167,	168,	169,	170,	
	171,	172,	173,	174,	175,	176,	177,	178,	179,	180,	180,	181,	182,	183,	185,	186,	
	187,	188,	189,	190,	191,	192,	193,	194,	195,	196,	197,	198,	199,	200,	201,	202,	
	203,	204,	205,	207,	208,	209,	210,	211,	212,	213,	214,	215,	216,	217,	218,	220,	
	}	,	//table no 1 : -contrast 9
	{
	16,	17,	18,	19,	21,	22,	23,	24,	26,	27,	28,	29,	31,	32,	33,	34,	
	36,	37,	38,	39,	40,	42,	43,	44,	45,	46,	48,	49,	50,	51,	52,	54,	
	55,	56,	57,	58,	59,	60,	61,	62,	64,	65,	66,	67,	68,	69,	70,	71,	
	72,	73,	74,	75,	76,	77,	78,	78,	79,	80,	81,	82,	83,	84,	84,	85,	
	86,	87,	88,	88,	89,	90,	91,	91,	92,	93,	93,	94,	95,	96,	96,	97,	
	97,	98,	99,	99,	100,	101,	101,	102,	102,	103,	104,	104,	105,	105,	106,	106,	
	107,	107,	108,	108,	109,	109,	110,	110,	111,	111,	112,	112,	113,	113,	114,	114,	
	115,	115,	116,	116,	117,	117,	118,	118,	119,	119,	120,	120,	120,	121,	121,	122,	
	122,	123,	123,	124,	124,	125,	125,	126,	126,	127,	127,	127,	128,	128,	129,	129,	
	130,	130,	131,	131,	132,	132,	133,	133,	134,	135,	135,	136,	136,	137,	137,	138,	
	138,	139,	140,	140,	141,	141,	142,	143,	143,	144,	145,	145,	146,	146,	147,	148,	
	149,	149,	150,	151,	151,	152,	153,	154,	154,	155,	156,	157,	157,	158,	159,	160,	
	161,	161,	162,	163,	164,	165,	166,	166,	167,	168,	169,	170,	171,	172,	172,	173,	
	174,	175,	176,	177,	178,	179,	180,	181,	181,	182,	183,	184,	185,	186,	187,	188,	
	189,	190,	191,	192,	193,	194,	195,	196,	197,	198,	199,	200,	201,	202,	203,	204,	
	205,	206,	207,	208,	209,	210,	211,	212,	213,	214,	215,	216,	217,	218,	219,	220,	
	}	,	//table no 2 : -contrast 8	
	{
	16,	17,	18,	19,	20,	22,	23,	24,	25,	26,	28,	29,	30,	31,	32,	34,	
	35,	36,	37,	38,	39,	41,	42,	43,	44,	45,	46,	47,	48,	49,	50,	51,	
	52,	53,	54,	55,	56,	57,	58,	59,	60,	61,	62,	63,	64,	65,	66,	66,	
	67,	68,	69,	70,	71,	71,	72,	73,	74,	75,	75,	76,	77,	78,	78,	79,	
	80,	81,	81,	82,	83,	83,	84,	85,	86,	86,	87,	88,	88,	89,	90,	90,	
	91,	91,	92,	93,	93,	94,	95,	95,	96,	96,	97,	98,	98,	99,	99,	100,	
	101,	101,	102,	102,	103,	104,	104,	105,	105,	106,	107,	107,	108,	108,	109,	109,	
	110,	111,	111,	112,	112,	113,	114,	114,	115,	115,	116,	117,	117,	118,	119,	119,	
	120,	120,	121,	122,	122,	123,	124,	124,	125,	126,	126,	127,	128,	128,	129,	130,	
	130,	131,	132,	132,	133,	134,	134,	135,	136,	137,	137,	138,	139,	139,	140,	141,	
	142,	142,	143,	144,	145,	145,	146,	147,	148,	148,	149,	150,	151,	151,	152,	153,	
	154,	154,	155,	156,	157,	158,	158,	159,	160,	161,	162,	162,	163,	164,	165,	166,	
	166,	167,	168,	169,	170,	170,	171,	172,	173,	174,	174,	175,	176,	177,	178,	179,	
	179,	180,	181,	182,	183,	184,	184,	185,	186,	187,	188,	189,	190,	190,	191,	192,	
	193,	194,	195,	195,	196,	197,	198,	199,	200,	201,	201,	202,	203,	204,	205,	206,	
	207,	207,	208,	209,	210,	211,	212,	213,	213,	214,	215,	216,	217,	218,	219,	220,	
	}	,	//table no 3 : -contrast 7		
	{
	12,	13,	14,	16,	17,	19,	20,	21,	23,	24,	25,	27,	28,	29,	31,	32,	
	33,	35,	36,	37,	38,	39,	40,	42,	43,	44,	45,	46,	47,	48,	48,	49,	
	50,	51,	52,	53,	54,	54,	55,	56,	57,	57,	58,	59,	59,	60,	61,	61,	
	62,	62,	63,	64,	64,	65,	65,	66,	67,	67,	68,	68,	69,	70,	70,	71,	
	71,	72,	73,	73,	74,	74,	75,	76,	76,	77,	77,	78,	79,	79,	80,	81,	
	81,	82,	83,	84,	84,	85,	86,	86,	87,	88,	88,	89,	90,	91,	91,	92,	
	93,	94,	94,	95,	96,	97,	97,	98,	99,	100,	100,	101,	102,	103,	103,	104,	
	105,	106,	107,	107,	108,	109,	110,	111,	111,	112,	113,	114,	114,	115,	116,	117,	
	118,	119,	119,	120,	121,	122,	123,	123,	124,	125,	126,	127,	127,	128,	129,	130,	
	131,	131,	132,	133,	134,	135,	136,	136,	137,	138,	139,	140,	140,	141,	142,	143,	
	144,	145,	145,	146,	147,	148,	149,	150,	150,	151,	152,	153,	154,	154,	155,	156,	
	157,	158,	159,	159,	160,	161,	162,	163,	164,	164,	165,	166,	167,	168,	169,	169,	
	170,	171,	172,	173,	174,	174,	175,	176,	177,	178,	179,	180,	180,	181,	182,	183,	
	184,	185,	185,	186,	187,	188,	189,	190,	190,	191,	192,	193,	194,	195,	196,	196,	
	197,	198,	199,	200,	201,	201,	202,	203,	204,	205,	206,	207,	207,	208,	209,	210,	
	211,	212,	212,	213,	214,	215,	216,	217,	218,	218,	219,	220,	221,	222,	223,	224,	
	}	,	//table no 4 : -contrast 6		
	{
	10,	11,	12,	13,	14,	16,	17,	18,	19,	20,	22,	23,	24,	25,	26,	28,	
	29,	30,	31,	32,	33,	34,	35,	36,	37,	38,	39,	40,	41,	42,	43,	44,	
	45,	46,	47,	48,	49,	50,	51,	51,	52,	53,	54,	55,	56,	56,	57,	58,	
	59,	60,	60,	61,	62,	63,	63,	64,	65,	66,	66,	67,	68,	69,	69,	70,	
	71,	71,	72,	73,	74,	74,	75,	76,	77,	77,	78,	79,	80,	80,	81,	82,	
	82,	83,	84,	85,	85,	86,	87,	88,	88,	89,	90,	90,	91,	92,	93,	93,	
	94,	95,	96,	96,	97,	98,	99,	99,	100,	101,	102,	102,	103,	104,	105,	105,	
	106,	107,	108,	108,	109,	110,	111,	111,	112,	113,	114,	114,	115,	116,	117,	117,	
	118,	119,	120,	121,	121,	122,	123,	124,	125,	125,	126,	127,	128,	129,	129,	130,	
	131,	132,	133,	133,	134,	135,	136,	137,	137,	138,	139,	140,	141,	142,	142,	143,	
	144,	145,	146,	147,	147,	148,	149,	150,	151,	152,	152,	153,	154,	155,	156,	157,	
	158,	158,	159,	160,	161,	162,	163,	164,	164,	165,	166,	167,	168,	169,	170,	171,	
	171,	172,	173,	174,	175,	176,	177,	178,	178,	179,	180,	181,	182,	183,	184,	185,	
	185,	186,	187,	188,	189,	190,	191,	192,	193,	193,	194,	195,	196,	197,	198,	199,	
	200,	201,	201,	202,	203,	204,	205,	206,	207,	208,	209,	210,	210,	211,	212,	213,	
	214,	215,	216,	217,	218,	218,	219,	220,	221,	222,	223,	224,	225,	226,	227,	228,	
	}	,	//table no 5 : -contrast 5			
	{
	8,	9,	10,	11,	12,	13,	14,	15,	17,	18,	19,	20,	21,	22,	23,	24,	
	25,	26,	27,	28,	29,	31,	32,	33,	34,	34,	35,	36,	37,	38,	39,	40,	
	41,	42,	43,	44,	45,	46,	46,	47,	48,	49,	50,	51,	52,	52,	53,	54,	
	55,	56,	56,	57,	58,	59,	60,	60,	61,	62,	63,	64,	64,	65,	66,	67,	
	68,	68,	69,	70,	71,	71,	72,	73,	74,	75,	75,	76,	77,	78,	78,	79,	
	80,	81,	82,	82,	83,	84,	85,	85,	86,	87,	88,	89,	89,	90,	91,	92,	
	93,	93,	94,	95,	96,	96,	97,	98,	99,	100,	100,	101,	102,	103,	104,	104,	
	105,	106,	107,	108,	108,	109,	110,	111,	112,	113,	113,	114,	115,	116,	117,	117,	
	118,	119,	120,	121,	122,	122,	123,	124,	125,	126,	127,	127,	128,	129,	130,	131,	
	132,	133,	133,	134,	135,	136,	137,	138,	139,	139,	140,	141,	142,	143,	144,	145,	
	145,	146,	147,	148,	149,	150,	151,	152,	152,	153,	154,	155,	156,	157,	158,	159,	
	159,	160,	161,	162,	163,	164,	165,	166,	167,	167,	168,	169,	170,	171,	172,	173,	
	174,	175,	176,	176,	177,	178,	179,	180,	181,	182,	183,	184,	185,	186,	186,	187,	
	188,	189,	190,	191,	192,	193,	194,	195,	196,	196,	197,	198,	199,	200,	201,	202,	
	203,	204,	205,	206,	207,	207,	208,	209,	210,	211,	212,	213,	214,	215,	216,	217,	
	218,	219,	219,	220,	221,	222,	223,	224,	225,	226,	227,	228,	229,	230,	231,	232,
	}	,	//table no 6 : -contrast 4		
	{
	6,	7,	8,	9,	10,	11,	12,	13,	14,	15,	16,	17,	18,	19,	20,	21,	
	22,	23,	24,	25,	26,	27,	29,	29,	30,	31,	32,	33,	34,	35,	36,	37,	
	38,	39,	40,	41,	42,	43,	44,	45,	46,	46,	47,	48,	49,	50,	51,	52,	
	53,	54,	54,	55,	56,	57,	58,	59,	60,	61,	61,	62,	63,	64,	65,	66,	
	67,	67,	68,	69,	70,	71,	72,	72,	73,	74,	75,	76,	77,	78,	78,	79,	
	80,	81,	82,	83,	84,	84,	85,	86,	87,	88,	89,	89,	90,	91,	92,	93,	
	94,	95,	95,	96,	97,	98,	99,	100,	101,	101,	102,	103,	104,	105,	106,	107,	
	107,	108,	109,	110,	111,	112,	113,	113,	114,	115,	116,	117,	118,	119,	120,	120,	
	121,	122,	123,	124,	125,	126,	126,	127,	128,	129,	130,	131,	132,	133,	133,	134,	
	135,	136,	137,	138,	139,	140,	141,	141,	142,	143,	144,	145,	146,	147,	148,	148,	
	149,	150,	151,	152,	153,	154,	155,	156,	156,	157,	158,	159,	160,	161,	162,	163,	
	164,	165,	165,	166,	167,	168,	169,	170,	171,	172,	173,	174,	174,	175,	176,	177,	
	178,	179,	180,	181,	182,	183,	183,	184,	185,	186,	187,	188,	189,	190,	191,	192,	
	193,	193,	194,	195,	196,	197,	198,	199,	200,	201,	202,	203,	204,	204,	205,	206,	
	207,	208,	209,	210,	211,	212,	213,	214,	214,	215,	216,	217,	218,	219,	220,	221,	
	222,	223,	224,	225,	225,	226,	227,	228,	229,	230,	231,	232,	233,	234,	235,	236,	
	}	,	//table no 7 : -contrast 3			
	{
	4,	5,	6,	7,	8,	9,	10,	11,	12,	13,	14,	15,	16,	17,	18,	19,	
	20,	21,	22,	23,	25,	26,	27,	27,	28,	29,	30,	31,	32,	33,	34,	35,	
	36,	37,	38,	39,	40,	41,	42,	42,	43,	44,	45,	46,	47,	48,	49,	50,	
	50,	51,	52,	53,	54,	55,	56,	57,	57,	58,	59,	60,	61,	62,	63,	64,	
	64,	65,	66,	67,	68,	69,	70,	71,	72,	72,	73,	74,	75,	76,	77,	78,	
	79,	80,	81,	81,	82,	83,	84,	85,	86,	87,	88,	89,	90,	91,	92,	93,	
	93,	94,	95,	96,	97,	98,	99,	100,	101,	102,	103,	104,	105,	106,	107,	108,	
	108,	109,	110,	111,	112,	113,	114,	115,	116,	117,	118,	119,	120,	121,	122,	123,	
	123,	124,	125,	126,	127,	128,	129,	130,	131,	132,	133,	134,	135,	136,	136,	137,	
	138,	139,	140,	141,	142,	143,	144,	145,	146,	147,	148,	148,	149,	150,	151,	152,	
	153,	154,	155,	156,	157,	158,	159,	160,	160,	161,	162,	163,	164,	165,	166,	167,	
	168,	169,	170,	171,	171,	172,	173,	174,	175,	176,	177,	178,	179,	180,	181,	181,	
	182,	183,	184,	185,	186,	187,	188,	189,	190,	191,	192,	192,	193,	194,	195,	196,	
	197,	198,	199,	200,	201,	201,	202,	203,	204,	205,	206,	207,	208,	209,	210,	211,	
	211,	212,	213,	214,	215,	216,	217,	218,	219,	220,	221,	221,	222,	223,	224,	225,	
	226,	227,	228,	229,	230,	230,	231,	232,	233,	234,	235,	236,	237,	238,	239,	240,
	}	,	//table no 8 : -contrast 2		
	{
	2,	3,	4,	5,	6,	7,	8,	9,	10,	11,	12,	14,	15,	16,	17,	18,	
	19,	20,	21,	22,	23,	24,	25,	26,	27,	28,	29,	30,	31,	32,	33,	34,	
	35,	36,	37,	38,	39,	40,	41,	41,	42,	43,	44,	45,	46,	47,	48,	49,	
	50,	50,	51,	52,	53,	54,	55,	56,	57,	58,	59,	59,	60,	61,	62,	63,	
	64,	65,	66,	67,	68,	68,	69,	70,	71,	72,	73,	74,	75,	76,	77,	78,	
	79,	80,	81,	81,	82,	83,	84,	85,	86,	87,	88,	89,	90,	91,	92,	93,	
	94,	95,	96,	97,	98,	99,	100,	100,	101,	102,	103,	104,	105,	106,	107,	108,	
	109,	110,	111,	112,	113,	114,	115,	116,	117,	118,	119,	120,	121,	122,	123,	124,	
	124,	125,	126,	127,	128,	129,	130,	131,	132,	133,	134,	135,	136,	137,	138,	139,	
	140,	141,	142,	143,	144,	144,	145,	146,	147,	148,	149,	150,	151,	152,	153,	154,	
	155,	156,	157,	158,	159,	160,	161,	162,	162,	163,	164,	165,	166,	167,	168,	169,	
	170,	171,	172,	173,	174,	175,	176,	177,	177,	178,	179,	180,	181,	182,	183,	184,	
	185,	186,	187,	188,	189,	190,	191,	191,	192,	193,	194,	195,	196,	197,	198,	199,	
	200,	201,	202,	203,	204,	205,	205,	206,	207,	208,	209,	210,	211,	212,	213,	214,	
	215,	216,	217,	218,	218,	219,	220,	221,	222,	223,	224,	225,	226,	227,	228,	229,	
	230,	231,	231,	232,	233,	234,	235,	236,	237,	238,	239,	240,	241,	242,	243,	244,	
	}	,	//table no 9 : -contrast 1	
	{ 
	0,	1,	2,	3,	4,	5,	6,	7,	8,	9,	10,	11,	12,	13,	14,	15,	
	16,	17,	18,	19,	20,	21,	22,	23,	24,	25,	26,	27,	28,	29,	30,	31,	
	32,	33,	34,	35,	36,	37,	38,	39,	40,	41,	42,	43,	44,	45,	46,	47,	
	48,	49,	50,	51,	52,	53,	54,	55,	56,	57,	58,	59,	60,	61,	62,	63,	
	64,	65,	66,	67,	68,	69,	70,	71,	72,	73,	74,	75,	76,	77,	78,	79,	
	80,	81,	82,	83,	84,	85,	86,	87,	88,	89,	90,	91,	92,	93,	94,	95,	
	96,	97,	98,	99,	100,	101,	102,	103,	104,	105,	106,	107,	108,	109,	110,	111,	
	112,	113,	114,	115,	116,	117,	118,	119,	120,	121,	122,	123,	124,	125,	126,	127,			
	128,	129,	130,	131,	132,	133,	134,	135,	136,	137,	138,	139,	140,	141,	142,	143,			
	144,	145,	146,	147,	148,	149,	150,	151,	152,	153,	154,	155,	156,	157,	158,	159,			
	160,	161,	162,	163,	164,	165,	166,	167,	168,	169,	170,	171,	172,	173,	174,	175,			
	176,	177,	178,	179,	180,	181,	182,	183,	184,	185,	186,	187,	188,	189,	190,	191,			
	192,	193,	194,	195,	196,	197,	198,	199,	200,	201,	202,	203,	204,	205,	206,	207,		
	208,	209,	210,	211,	212,	213,	214,	215,	216,	217,	218,	219,	220,	221,	222,	223,			
	224,	225,	226,	227,	228,	229,	230,	231,	232,	233,	234,	235,	236,	237,	238,	239,			
	240,	241,	242,	243,	244,	245,	246,	247,	248,	249,	250,	251,	252,	253,	254,	255,
	}	,	//table no 10 : +contrast 0	
	{
#if defined(__USE_CMOS_IMX226__)||defined(__USE_CMOS_IMX274__)||defined(__USE_CMOS_IMX185__)||defined(__USE_CMOS_IMX290__) || defined(__USE_CMOS_IMX327__) || defined(__USE_CMOS_IMX326__) || defined(__USE_CMOS_IMX385__)
/*	//180109 for hd_test
	0,	0,	0,	1,	1,	2,	2,	2,	3,	3,	4,	4,	5,	5,	6,	6,	
	7,	7,	8,	8,	9,	10,	10,	11,	12,	12,	13,	14,	15,	16,	17,	18,	
	19,	20,	21,	22,	23,	24,	25,	26,	27,	29,	30,	31,	33,	34,	35,	37,	
	38,	40,	41,	43,	44,	46,	47,	49,	50,	52,	53,	55,	56,	58,	60,	62,	
	64,	65,	67,	68,	70,	71,	73,	74,	76,	77,	79,	80,	82,	83,	85,	86,	
	88,	89,	91,	92,	94,	95,	96,	98,	99,	100,	102,	103,	104,	106,	107,	108,	
	110,	111,	112,	113,	114,	116,	117,	118,	119,	120,	121,	122,	124,	125,	126,	127,	
	128,	129,	130,	131,	132,	133,	134,	135,	136,	137,	138,	139,	140,	141,	142,	143,	
	145,	146,	147,	148,	149,	150,	151,	152,	153,	154,	155,	156,	157,	158,	159,	160,	
	161,	162,	163,	164,	165,	166,	167,	168,	169,	170,	171,	172,	173,	174,	175,	176,	
	177,	178,	179,	180,	181,	182,	183,	184,	185,	186,	187,	188,	189,	190,	191,	192,	
	193,	194,	195,	196,	197,	198,	199,	199,	200,	201,	202,	203,	204,	205,	206,	207,	
	208,	208,	209,	210,	211,	212,	213,	213,	214,	215,	216,	217,	218,	218,	219,	220,	
	221,	222,	222,	223,	224,	225,	225,	226,	227,	228,	228,	229,	230,	231,	231,	232,	
	233,	234,	234,	235,	236,	236,	237,	238,	239,	239,	240,	241,	241,	242,	243,	243,	
	244,	245,	246,	246,	247,	248,	248,	249,	250,	250,	251,	252,	252,	253,	254,	255,			
*/			
	0,	0,	1,	1,	2,	3,	3,	4,	5,	5,	6,	7,	7,	8,	9,	9,	
	10,	11,	12,	13,	13,	14,	15,	16,	17,	18,	18,	19,	20,	21,	22,	23,	
	24,	25,	26,	27,	28,	29,	31,	32,	33,	34,	35,	36,	38,	39,	40,	41,	
	42,	44,	45,	46,	48,	49,	50,	51,	53,	54,	55,	57,	58,	59,	61,	62,	
	64,	65,	66,	68,	69,	70,	72,	73,	74,	76,	77,	78,	80,	81,	82,	84,	
	85,	86,	88,	89,	91,	92,	93,	95,	96,	98,	99,	100,	102,	103,	105,	106,	
	108,	109,	110,	112,	113,	115,	116,	118,	119,	121,	122,	123,	125,	126,	128,	129,	
	130,	132,	133,	135,	136,	137,	139,	140,	141,	143,	144,	145,	147,	148,	149,	150,	
	152,	153,	154,	155,	157,	158,	159,	160,	161,	163,	164,	165,	166,	167,	168,	169,	
	170,	172,	173,	174,	175,	176,	177,	178,	179,	180,	180,	181,	182,	183,	184,	185,	
	186,	187,	188,	189,	190,	191,	191,	192,	193,	194,	195,	196,	197,	198,	198,	199,	
	200,	201,	202,	203,	204,	204,	205,	206,	207,	208,	209,	209,	210,	211,	212,	213,	
	213,	214,	215,	216,	217,	217,	218,	219,	220,	220,	221,	222,	222,	223,	224,	225,	
	225,	226,	227,	227,	228,	229,	229,	230,	231,	231,	232,	233,	233,	234,	235,	235,	
	236,	237,	237,	238,	238,	239,	240,	240,	241,	241,	242,	243,	243,	244,	244,	245,	
	246,	246,	247,	247,	248,	249,	249,	250,	250,	251,	252,	252,	253,	253,	254,	255,		

#elif defined(__USE_CMOS_MN34420__)
	0,	0,	0,	0,	1,	1,	1,	2,	2,	3,	3,	3,	4,	4,	5,	5,	
	6,	6,	7,	8,	8,	9,	10,	11,	12,	13,	13,	14,	15,	17,	18,	19,	
	20,	21,	23,	24,	25,	26,	28,	29,	31,	32,	33,	35,	36,	38,	39,	40,	
	42,	43,	45,	46,	47,	49,	50,	51,	53,	54,	56,	57,	58,	60,	61,	62,	
	64,	65,	66,	67,	69,	70,	71,	72,	74,	75,	76,	77,	79,	80,	81,	82,	
	84,	85,	86,	88,	89,	90,	92,	93,	94,	96,	97,	98,	100,	101,	103,	104,	
	105,	107,	108,	110,	111,	113,	114,	115,	117,	118,	120,	121,	123,	124,	125,	127,	
	128,	129,	131,	132,	133,	135,	136,	137,	138,	140,	141,	142,	143,	145,	146,	147,	
	148,	150,	151,	152,	153,	154,	155,	157,	158,	159,	160,	161,	162,	163,	164,	165,	
	167,	168,	169,	170,	171,	172,	173,	174,	175,	176,	177,	178,	179,	180,	181,	182,	
	183,	184,	185,	186,	187,	187,	188,	189,	190,	191,	192,	193,	194,	195,	196,	196,	
	197,	198,	199,	200,	201,	202,	202,	203,	204,	205,	206,	207,	207,	208,	209,	210,	
	211,	211,	212,	213,	214,	214,	215,	216,	217,	217,	218,	219,	220,	220,	221,	222,	
	223,	223,	224,	225,	226,	226,	227,	228,	228,	229,	230,	230,	231,	232,	233,	233,	
	234,	235,	235,	236,	237,	237,	238,	239,	239,	240,	241,	241,	242,	243,	243,	244,	
	245,	245,	246,	247,	247,	248,	249,	249,	250,	251,	251,	252,	253,	253,	254,	255,		
#else		
	0,	0,	1,	1,	2,	2,	3,	4,	4,	5,	5,	6,	7,	7,	8,	9,	
	9,	10,	11,	11,	12,	13,	14,	14,	15,	16,	17,	18,	18,	19,	20,	21,	
	22,	23,	24,	25,	26,	27,	28,	29,	30,	31,	32,	33,	35,	36,	37,	38,	
	39,	40,	42,	43,	44,	45,	47,	48,	49,	50,	52,	53,	54,	56,	58,	60,	
	61,	62,	63,	64,	66,	67,	68,	70,	71,	73,	74,	76,	77,	79,	80,	82,	
	83,	85,	86,	88,	89,	91,	92,	94,	95,	96,	98,	99,	101,	102,	104,	105,	
	107,	108,	109,	111,	112,	114,	115,	116,	118,	119,	120,	122,	123,	124,	125,	127,	
	128,	129,	130,	131,	133,	134,	135,	136,	137,	138,	139,	140,	141,	142,	143,	144,	
	145,	146,	146,	147,	148,	149,	150,	151,	151,	152,	153,	154,	155,	155,	156,	157,	
	158,	158,	159,	160,	160,	161,	162,	163,	163,	164,	165,	165,	166,	167,	167,	168,	
	169,	169,	170,	171,	172,	172,	173,	174,	174,	175,	176,	177,	177,	178,	179,	179,	
	180,	181,	182,	183,	183,	184,	185,	186,	187,	187,	188,	189,	190,	191,	192,	192,	
	193,	194,	195,	196,	197,	198,	199,	199,	200,	201,	202,	203,	204,	205,	206,	207,	
	208,	209,	210,	211,	211,	212,	213,	214,	215,	216,	217,	218,	219,	220,	221,	222,	
	223,	224,	225,	226,	227,	228,	229,	230,	231,	232,	233,	234,	235,	236,	237,	238,	
	239,	240,	241,	242,	243,	244,	245,	246,	247,	248,	249,	250,	251,	252,	253,	255,	
#endif	
	}	,	//table no 11 : +contrast 1		(-3,5%)
	{
	0,	0,	0,	1,	1,	2,	2,	2,	3,	3,	4,	4,	5,	5,	6,	6,	
	7,	7,	8,	8,	9,	10,	10,	11,	12,	12,	13,	14,	15,	16,	17,	18,	
	19,	20,	21,	22,	23,	24,	25,	26,	27,	29,	30,	31,	33,	34,	35,	37,	
	38,	40,	41,	43,	44,	46,	47,	49,	50,	52,	53,	55,	56,	58,	59,	61,	
	63,	64,	66,	67,	69,	70,	72,	73,	75,	76,	78,	80,	81,	83,	84,	86,	
	87,	89,	90,	92,	93,	95,	96,	98,	99,	101,	102,	104,	105,	107,	108,	110,	
	111,	113,	114,	115,	117,	118,	120,	121,	123,	124,	125,	127,	128,	130,	131,	132,	
	134,	135,	136,	138,	139,	140,	142,	143,	144,	146,	147,	148,	150,	151,	152,	153,	
	155,	156,	157,	158,	159,	161,	162,	163,	164,	165,	166,	167,	169,	170,	171,	172,	
	173,	174,	175,	176,	177,	178,	179,	180,	182,	183,	184,	185,	186,	187,	188,	188,	
	189,	190,	191,	192,	193,	194,	195,	196,	197,	198,	199,	200,	200,	201,	202,	203,	
	204,	205,	206,	206,	207,	208,	209,	210,	210,	211,	212,	213,	214,	214,	215,	216,	
	217,	217,	218,	219,	219,	220,	221,	222,	222,	223,	224,	224,	225,	226,	226,	227,	
	228,	228,	229,	229,	230,	231,	231,	232,	233,	233,	234,	234,	235,	236,	236,	237,	
	237,	238,	239,	239,	240,	240,	241,	241,	242,	243,	243,	244,	244,	245,	245,	246,	
	246,	247,	247,	248,	249,	249,	250,	250,	251,	251,	252,	252,	253,	253,	254,	255,	
	}	,	//table no 12 : +contrast 2(df 50, default, -6,10%)
	{
	0,	0,	0,	0,	1,	1,	1,	1,	2,	2,	2,	3,	3,	3,	4,	4,	
	4,	5,	5,	6,	6,	7,	7,	8,	8,	9,	10,	10,	11,	12,	13,	14,	
	15,	15,	16,	17,	18,	19,	21,	22,	23,	24,	25,	27,	28,	29,	30,	32,	
	33,	35,	36,	37,	39,	40,	42,	43,	45,	46,	48,	50,	51,	53,	54,	56,	
	58,	59,	61,	62,	64,	66,	67,	69,	70,	72,	74,	75,	77,	78,	80,	82,	
	83,	85,	87,	88,	90,	91,	93,	95,	96,	98,	99,	101,	103,	104,	106,	107,	
	109,	111,	112,	114,	115,	117,	118,	120,	122,	123,	125,	126,	128,	129,	131,	132,	
	134,	135,	137,	138,	140,	141,	143,	144,	145,	147,	148,	150,	151,	152,	154,	155,	
	157,	158,	159,	160,	162,	163,	164,	166,	167,	168,	169,	171,	172,	173,	174,	175,	
	177,	178,	179,	180,	181,	182,	183,	185,	186,	187,	188,	189,	190,	191,	192,	193,	
	194,	195,	196,	197,	198,	199,	200,	201,	202,	203,	204,	205,	206,	206,	207,	208,	
	209,	210,	211,	212,	212,	213,	214,	215,	216,	216,	217,	218,	219,	219,	220,	221,	
	222,	222,	223,	224,	224,	225,	226,	226,	227,	228,	228,	229,	229,	230,	231,	231,	
	232,	232,	233,	234,	234,	235,	235,	236,	236,	237,	237,	238,	238,	239,	239,	240,	
	240,	241,	241,	242,	242,	243,	243,	244,	244,	245,	245,	246,	246,	247,	247,	248,	
	248,	248,	249,	249,	250,	250,	251,	251,	251,	252,	252,	253,	253,	254,	254,	255,	
	}	,	//table no 13 : +contrast 3 -9, 15%	
	{
	0,	0,	0,	0,	0,	0,	1,	1,	1,	1,	1,	2,	2,	2,	3,	3,	
	3,	3,	4,	4,	5,	5,	6,	6,	7,	7,	8,	8,	9,	10,	10,	11,	
	12,	13,	13,	14,	15,	16,	17,	18,	19,	21,	22,	23,	24,	26,	27,	28,	
	30,	31,	33,	34,	36,	38,	39,	41,	43,	44,	46,	48,	49,	51,	53,	55,	
	56,	58,	60,	61,	63,	65,	67,	68,	70,	72,	74,	75,	77,	79,	81,	82,	
	84,	86,	87,	89,	91,	93,	94,	96,	98,	99,	101,	103,	104,	106,	108,	109,	
	111,	113,	114,	116,	117,	119,	121,	122,	124,	125,	127,	128,	130,	132,	133,	135,	
	136,	137,	139,	140,	142,	143,	145,	146,	148,	149,	150,	152,	153,	154,	156,	157,	
	158,	160,	161,	162,	164,	165,	166,	167,	169,	170,	171,	172,	173,	175,	176,	177,	
	178,	179,	180,	182,	183,	184,	185,	186,	187,	188,	189,	190,	191,	192,	193,	195,	
	196,	197,	198,	199,	200,	200,	201,	202,	203,	204,	205,	206,	207,	208,	209,	210,	
	211,	211,	212,	213,	214,	215,	216,	216,	217,	218,	219,	220,	220,	221,	222,	223,	
	223,	224,	225,	225,	226,	227,	227,	228,	229,	229,	230,	230,	231,	232,	232,	233,	
	233,	234,	234,	235,	236,	236,	237,	237,	238,	238,	239,	239,	240,	240,	241,	241,	
	242,	242,	243,	243,	243,	244,	244,	245,	245,	246,	246,	246,	247,	247,	248,	248,	
	249,	249,	249,	250,	250,	251,	251,	251,	252,	252,	253,	253,	253,	254,	254,	255,	
	}	,	//table no 14 : +contrast 4 -12,20%
	{
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	1,	1,	1,	1,	2,	
	2,	2,	2,	3,	3,	3,	4,	4,	4,	5,	5,	6,	6,	7,	8,	9,	
	10,	11,	11,	12,	13,	14,	15,	16,	17,	19,	20,	21,	22,	24,	25,	26,	
	28,	29,	31,	32,	34,	36,	37,	39,	41,	42,	44,	46,	47,	49,	51,	53,	
	54,	56,	58,	59,	61,	63,	64,	66,	68,	69,	71,	73,	75,	76,	78,	80,	
	81,	83,	85,	86,	88,	90,	92,	93,	95,	97,	98,	101,	103,	104,	106,	108,	
	109,	111,	113,	114,	116,	118,	119,	121,	123,	124,	126,	127,	129,	131,	132,	134,	
	135,	137,	138,	140,	141,	143,	144,	146,	147,	149,	150,	152,	153,	154,	156,	157,	
	159,	160,	161,	162,	164,	165,	166,	168,	169,	170,	171,	173,	174,	175,	176,	177,	
	178,	180,	181,	182,	183,	184,	185,	186,	187,	188,	189,	190,	191,	192,	193,	194,	
	195,	196,	197,	198,	199,	200,	202,	203,	203,	204,	205,	206,	207,	208,	209,	209,	
	210,	211,	212,	212,	213,	214,	215,	216,	216,	217,	218,	218,	219,	220,	220,	221,	
	222,	223,	223,	224,	224,	225,	226,	226,	227,	228,	228,	229,	229,	230,	231,	231,	
	232,	232,	233,	233,	234,	234,	235,	236,	236,	237,	237,	238,	238,	239,	239,	240,	
	240,	241,	241,	242,	242,	243,	243,	244,	244,	245,	245,	245,	246,	246,	247,	247,	
	248,	248,	249,	249,	250,	250,	250,	251,	251,	252,	252,	253,	253,	254,	254,	255,	
	}	,	//table no 15 : +contrast 5 -15,23%
	{
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	1,	
	1,	2,	2,	2,	3,	3,	4,	4,	4,	5,	5,	6,	6,	7,	8,	9,	
	9,	10,	11,	12,	13,	14,	15,	16,	17,	19,	20,	21,	22,	24,	25,	26,	
	28,	29,	31,	32,	34,	36,	37,	39,	41,	42,	44,	46,	47,	49,	51,	53,	
	54,	56,	58,	59,	61,	63,	64,	66,	68,	69,	71,	73,	75,	76,	78,	80,	
	82,	85,	87,	89,	91,	93,	96,	98,	100,	102,	105,	107,	109,	111,	113,	116,	
	118,	120,	122,	124,	126,	128,	130,	132,	134,	136,	138,	140,	142,	144,	146,	148,	
	150,	151,	153,	155,	157,	158,	160,	161,	163,	164,	166,	167,	168,	170,	171,	172,	
	174,	175,	176,	177,	178,	179,	180,	181,	182,	183,	184,	185,	186,	187,	188,	189,	
	190,	190,	191,	192,	193,	193,	194,	195,	196,	196,	197,	198,	198,	199,	200,	200,	
	201,	201,	202,	202,	203,	204,	204,	205,	205,	206,	206,	207,	208,	208,	209,	209,	
	210,	210,	211,	211,	212,	212,	213,	214,	214,	215,	215,	216,	216,	217,	217,	218,	
	219,	219,	220,	220,	221,	221,	222,	222,	223,	223,	224,	225,	225,	226,	226,	227,	
	227,	228,	228,	229,	230,	230,	231,	231,	232,	232,	233,	233,	234,	235,	235,	236,	
	236,	237,	237,	238,	238,	239,	240,	240,	241,	241,	242,	242,	243,	243,	244,	245,	
	245,	246,	246,	247,	247,	248,	248,	249,	250,	250,	251,	251,	252,	253,	254,	255,	
	}	,	//table no 16 : +contrast 6 -18, 30%		
	{
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	1,	1,	1,	2,	2,	3,	3,	4,	5,	5,	
	6,	7,	8,	9,	10,	10,	11,	12,	14,	15,	16,	17,	18,	19,	21,	22,	
	23,	25,	26,	28,	29,	31,	32,	34,	35,	37,	39,	40,	42,	44,	46,	48,	
	49,	51,	53,	55,	57,	59,	61,	63,	65,	67,	70,	72,	74,	76,	78,	80,	
	82,	85,	87,	89,	91,	93,	96,	98,	100,	102,	105,	107,	109,	111,	113,	116,	
	118,	120,	122,	124,	126,	128,	130,	132,	134,	136,	138,	140,	142,	144,	146,	148,	
	150,	151,	153,	155,	157,	158,	160,	161,	163,	164,	166,	167,	168,	170,	171,	172,	
	174,	175,	176,	177,	178,	179,	180,	181,	182,	183,	184,	185,	186,	187,	188,	189,	
	190,	190,	191,	192,	193,	193,	194,	195,	196,	196,	197,	198,	198,	199,	200,	200,	
	201,	201,	202,	202,	203,	204,	204,	205,	205,	206,	206,	207,	208,	208,	209,	209,	
	210,	210,	211,	211,	212,	212,	213,	214,	214,	215,	215,	216,	216,	217,	217,	218,	
	219,	219,	220,	220,	221,	221,	222,	222,	223,	223,	224,	225,	225,	226,	226,	227,	
	227,	228,	228,	229,	230,	230,	231,	231,	232,	232,	233,	233,	234,	235,	235,	236,	
	236,	237,	237,	238,	238,	239,	240,	240,	241,	241,	242,	242,	243,	243,	244,	245,	
	245,	246,	246,	247,	247,	248,	248,	249,	250,	250,	251,	251,	252,	253,	254,	255,	
	}	,	//table no 17 : +contrast 7 -21, 35%			
	{
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	1,	1,	2,	3,	3,	4,	
	5,	5,	6,	7,	8,	8,	9,	10,	11,	12,	13,	15,	16,	17,	18,	19,	
	21,	22,	23,	25,	26,	28,	29,	31,	32,	34,	36,	37,	39,	41,	43,	45,	
	46,	48,	50,	52,	54,	56,	58,	60,	63,	65,	67,	69,	71,	73,	76,	78,	
	80,	82,	85,	87,	89,	92,	94,	96,	98,	101,	103,	105,	108,	110,	112,	115,	
	117,	119,	121,	124,	126,	128,	130,	132,	135,	137,	139,	141,	143,	145,	147,	149,	
	151,	153,	155,	157,	159,	160,	162,	164,	165,	167,	169,	170,	172,	173,	175,	176,	
	177,	179,	180,	181,	183,	184,	185,	186,	188,	189,	190,	191,	192,	193,	194,	195,	
	196,	197,	198,	199,	200,	200,	201,	202,	203,	204,	205,	205,	206,	207,	208,	208,	
	209,	210,	210,	211,	212,	212,	213,	213,	214,	215,	215,	216,	217,	217,	218,	218,	
	219,	219,	220,	220,	221,	222,	222,	223,	223,	224,	224,	225,	225,	226,	226,	227,	
	227,	228,	228,	229,	229,	230,	230,	231,	231,	232,	232,	233,	233,	233,	234,	234,	
	235,	235,	236,	236,	237,	237,	237,	238,	238,	239,	239,	240,	240,	240,	241,	241,	
	242,	242,	242,	243,	243,	244,	244,	244,	245,	245,	246,	246,	246,	247,	247,	247,	
	248,	248,	249,	249,	249,	250,	250,	250,	251,	251,	252,	252,	252,	253,	254,	255,	
	}	,	//table no 18 : +contrast 8 -24, 40%		
	{
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	1,	1,	2,	3,	4,	4,	5,	6,	7,	9,	10,	11,	12,	13,	15,	16,	
	18,	19,	21,	22,	24,	25,	27,	29,	30,	32,	34,	36,	38,	40,	41,	43,	
	45,	47,	49,	51,	54,	56,	58,	60,	62,	64,	66,	69,	71,	73,	75,	78,	
	80,	82,	84,	87,	89,	91,	94,	96,	98,	101,	103,	105,	108,	110,	112,	115,	
	117,	119,	122,	124,	126,	128,	131,	133,	135,	137,	140,	142,	144,	146,	148,	150,	
	152,	155,	157,	159,	161,	163,	165,	167,	168,	170,	172,	174,	176,	177,	179,	181,	
	183,	184,	186,	187,	189,	190,	192,	193,	194,	196,	197,	198,	199,	201,	202,	203,	
	204,	205,	206,	207,	208,	209,	210,	211,	212,	213,	214,	214,	215,	216,	217,	217,	
	218,	219,	219,	220,	221,	221,	222,	223,	223,	224,	224,	225,	225,	226,	226,	227,	
	227,	228,	228,	229,	229,	229,	230,	230,	231,	231,	231,	232,	232,	232,	233,	233,	
	234,	234,	234,	235,	235,	235,	236,	236,	236,	237,	237,	237,	238,	238,	238,	239,	
	239,	239,	240,	240,	240,	241,	241,	241,	242,	242,	242,	243,	243,	243,	243,	244,	
	244,	244,	245,	245,	245,	246,	246,	246,	247,	247,	247,	248,	248,	248,	248,	249,	
	249,	249,	250,	250,	250,	251,	251,	251,	251,	252,	252,	252,	253,	253,	254,	255,
	}	,	//table no 19 : +contrast 9 -27, 45%			
	{
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	1,	2,	3,	4,	5,	6,	6,	7,	7,	8,	9,	10,	
	11,	12,	13,	14,	15,	17,	18,	20,	21,	23,	24,	26,	28,	30,	32,	34,	
	36,	38,	40,	42,	44,	47,	49,	52,	54,	56,	59,	61,	64,	67,	69,	72,	
	75,	77,	80,	83,	86,	88,	91,	94,	97,	99,	102,	105,	108,	111,	113,	116,	
	119,	122,	125,	127,	130,	133,	135,	138,	141,	143,	146,	148,	151,	153,	156,	158,	
	160,	163,	165,	167,	169,	171,	174,	175,	177,	179,	181,	183,	185,	186,	188,	189,	
	191,	192,	194,	195,	197,	198,	199,	200,	202,	203,	204,	205,	206,	207,	208,	209,	
	210,	210,	211,	212,	213,	214,	214,	215,	216,	216,	217,	218,	218,	219,	219,	220,	
	220,	221,	221,	222,	222,	223,	223,	223,	224,	224,	225,	225,	226,	226,	226,	227,	
	227,	227,	228,	228,	229,	229,	229,	230,	230,	230,	231,	231,	231,	232,	232,	233,	
	233,	233,	234,	234,	234,	235,	235,	235,	236,	236,	236,	237,	237,	237,	238,	238,	
	238,	239,	239,	239,	240,	240,	240,	241,	241,	241,	241,	242,	242,	242,	243,	243,	
	243,	244,	244,	244,	245,	245,	245,	246,	246,	246,	247,	247,	247,	248,	248,	248,	
	249,	249,	249,	250,	250,	250,	251,	251,	251,	252,	252,	252,	253,	253,	254,	255,
	}	,	//table no 20 : +contrast 10  -30, 50%			
	{
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	1,	2,	2,	3,	4,	
	6,	7,	9,	11,	12,	15,	17,	19,	21,	23,	25,	27,	29,	31,	34,	36,	
	38,	40,	42,	45,	47,	49,	52,	54,	56,	59,	61,	63,	66,	68,	71,	73,	
	76,	78,	80,	83,	85,	88,	91,	93,	96,	98,	101,	103,	106,	108,	111,	114,	
	116,	119,	121,	124,	126,	129,	131,	134,	136,	139,	141,	143,	146,	148,	150,	152,	
	155,	157,	159,	161,	163,	165,	167,	168,	170,	172,	174,	175,	177,	179,	180,	182,	
	183,	185,	186,	188,	189,	190,	192,	193,	194,	195,	197,	198,	199,	200,	201,	202,	
	203,	204,	205,	206,	207,	208,	209,	210,	210,	211,	212,	213,	213,	214,	215,	215,	
	216,	217,	217,	218,	219,	219,	220,	220,	221,	221,	222,	222,	223,	223,	224,	224,	
	224,	225,	225,	226,	226,	227,	227,	227,	228,	228,	228,	229,	229,	229,	230,	230,	
	230,	231,	231,	232,	232,	232,	233,	233,	233,	234,	234,	234,	235,	235,	235,	236,	
	236,	236,	237,	237,	238,	238,	238,	239,	239,	239,	240,	240,	240,	241,	241,	242,	
	242,	242,	243,	243,	243,	244,	244,	244,	245,	245,	246,	246,	246,	247,	247,	247,	
	248,	248,	249,	249,	249,	250,	250,	250,	251,	251,	252,	252,	252,	253,	254,	255,	
	}	,	//table no 21 : +contrast 11	-33, 55%			
	{
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,
	1,	2,	3,	4,	5,	6,	8,	10,	12,	14,	16,	18,	20,	22,	24,	26,	
	28,	30,	33,	36,	39,	42,	45,	48,	52,	55,	58,	60,	62,	64,	66,	69,	
	108,	110,	112,	115,	117,	119,	122,	124,	126,	128,	131,	133,	135,	137,	140,	142,	
	144,	146,	148,	150,	152,	155,	157,	159,	161,	163,	165,	167,	168,	170,	172,	174,	
	176,	177,	179,	181,	183,	184,	186,	187,	189,	190,	192,	193,	194,	196,	197,	198,	
	199,	201,	202,	203,	204,	205,	206,	207,	208,	209,	210,	211,	212,	213,	214,	214,	
	215,	216,	217,	217,	218,	219,	219,	220,	221,	221,	222,	223,	223,	224,	224,	225,	
	225,	226,	226,	227,	227,	228,	228,	229,	229,	229,	230,	230,	231,	231,	231,	232,	
	232,	232,	233,	233,	234,	234,	234,	235,	235,	235,	236,	236,	236,	237,	237,	237,	
	238,	238,	238,	239,	239,	239,	240,	240,	240,	241,	241,	241,	242,	242,	243,	243,		
	244,	244,	245,	245,	245,	246,	246,	246,	247,	247,	247,	248,	248,	248,	248,	249,	
	249,	249,	250,	250,	250,	251,	251,	251,	251,	252,	252,	252,	253,	253,	254,	255,
	}	,	//table no 22 : +contrast 12		-36, 60%			
};

ROMDATA BYTE YCgamma_table[13][256] = 
{
	{
		0,	2,	4,	6,	8,	10,	12,	15,	17,	19,	21,	23,	25,	27,	29,	31,	
		33,	36,	38,	40,	42,	43,	45,	47,	49,	51,	53,	55,	57,	58,	60,	62,	
		64,	65,	67,	68,	70,	71,	73,	74,	76,	77,	79,	80,	81,	83,	84,	85,	
		86,	88,	89,	90,	91,	92,	93,	94,	95,	96,	97,	98,	99,	100,	101,	102,	
		103,	104,	104,	105,	106,	107,	107,	108,	109,	109,	110,	111,	111,	112,	112,	113,	
		114,	114,	115,	115,	116,	116,	117,	117,	117,	118,	118,	119,	119,	119,	120,	120,	
		121,	121,	121,	121,	122,	122,	122,	123,	123,	123,	123,	124,	124,	124,	124,	124,	
		125,	125,	125,	125,	125,	126,	126,	126,	126,	126,	127,	127,	127,	127,	127,	127,	
		128,	128,	128,	128,	128,	128,	128,	129,	129,	129,	129,	129,	129,	130,	130,	130,	
		130,	130,	131,	131,	131,	131,	132,	132,	132,	132,	133,	133,	133,	133,	134,	134,	
		134,	135,	135,	135,	136,	136,	136,	137,	137,	138,	138,	139,	139,	139,	140,	141,	
		141,	142,	142,	143,	143,	144,	145,	145,	146,	147,	147,	148,	149,	149,	150,	151,	
		152,	153,	154,	154,	155,	156,	157,	158,	159,	160,	161,	162,	164,	165,	166,	167,	
		168,	169,	171,	172,	173,	175,	176,	177,	179,	180,	182,	183,	185,	187,	188,	190,	
		192,	193,	195,	197,	199,	200,	202,	204,	206,	208,	210,	212,	214,	216,	218,	220,	
		222,	224,	226,	228,	231,	233,	235,	237,	239,	241,	244,	246,	248,	250,	252,	255,	
	}, //0
	{
		0,	1,	3,	5,	6,	8,	10,	12,	13,	15,	17,	19,	20,	22,	24,	25,	
		27,	29,	30,	32,	34,	35,	37,	39,	40,	42,	43,	45,	46,	48,	49,	51,	
		52,	54,	55,	57,	58,	60,	61,	62,	64,	65,	66,	67,	69,	70,	71,	72,	
		73,	75,	76,	77,	78,	79,	80,	81,	82,	83,	84,	85,	86,	87,	88,	89,	
		90,	91,	92,	93,	94,	94,	95,	96,	97,	98,	98,	99,	100,	101,	101,	102,	
		103,	104,	104,	105,	106,	106,	107,	108,	108,	109,	109,	110,	111,	111,	112,	112,	
		113,	113,	114,	114,	115,	115,	116,	117,	117,	117,	118,	118,	119,	119,	120,	120,	
		121,	121,	122,	122,	123,	123,	123,	124,	124,	125,	125,	125,	126,	126,	127,	127,	
		128,	128,	128,	129,	129,	129,	130,	130,	131,	131,	131,	132,	132,	133,	133,	133,	
		134,	134,	135,	135,	136,	136,	136,	137,	137,	138,	138,	139,	139,	140,	140,	141,	
		141,	142,	142,	143,	143,	144,	144,	145,	145,	146,	146,	147,	148,	148,	149,	149,	
		150,	151,	151,	152,	153,	154,	154,	155,	156,	156,	157,	158,	159,	160,	161,	161,	
		162,	163,	164,	165,	166,	167,	168,	169,	170,	171,	172,	173,	174,	175,	176,	177,	
		178,	180,	181,	182,	183,	185,	186,	187,	188,	190,	191,	193,	194,	196,	197,	198,	
		200,	202,	203,	205,	206,	208,	210,	211,	213,	215,	216,	218,	220,	221,	223,	225,	
		227,	229,	230,	232,	234,	236,	238,	240,	241,	243,	245,	247,	249,	251,	253,	255,	
	}, //1
	{
		0,	1,	2,	4,	5,	7,	8,	10,	11,	13,	14,	15,	17,	18,	20,	21,	
		22,	24,	25,	27,	28,	29,	31,	32,	34,	35,	36,	38,	39,	40,	42,	43,	
		44,	46,	47,	48,	49,	51,	52,	53,	54,	56,	57,	58,	59,	60,	61,	62,	
		64,	65,	66,	67,	68,	69,	70,	71,	72,	73,	74,	75,	76,	77,	78,	79,	
		80,	81,	82,	83,	84,	85,	86,	87,	87,	88,	89,	90,	91,	92,	93,	93,	
		94,	95,	96,	97,	97,	98,	99,	100,	101,	101,	102,	103,	104,	104,	105,	106,	
		106,	107,	108,	109,	109,	110,	111,	111,	112,	113,	113,	114,	115,	115,	116,	117,	
		117,	118,	119,	119,	120,	121,	121,	122,	123,	123,	124,	124,	125,	126,	126,	127,	
		128,	128,	129,	129,	130,	131,	131,	132,	132,	133,	134,	134,	135,	135,	136,	137,	
		137,	138,	139,	139,	140,	140,	141,	142,	142,	143,	144,	144,	145,	146,	146,	147,	
		148,	148,	149,	150,	150,	151,	152,	152,	153,	154,	155,	155,	156,	157,	158,	158,	
		159,	160,	161,	161,	162,	163,	164,	165,	166,	166,	167,	168,	169,	170,	171,	172,	
		173,	174,	174,	175,	176,	177,	178,	179,	180,	181,	182,	183,	184,	186,	187,	188,	
		189,	190,	191,	192,	193,	195,	196,	197,	198,	200,	201,	202,	203,	205,	206,	207,	
		209,	210,	211,	213,	214,	216,	217,	218,	220,	221,	223,	224,	226,	227,	229,	230,	
		232,	233,	235,	236,	238,	239,	241,	242,	244,	245,	247,	248,	250,	251,	253,	255,	
	}, //2
	{	
		0,	1,	2,	3,	4,	5,	6,	7,	8,	9,	10,	11,	12,	13,	14,	15,	
		16,	17,	18,	19,	20,	21,	22,	23,	24,	25,	26,	27,	28,	29,	30,	31,	
		32,	33,	34,	35,	36,	37,	38,	39,	40,	41,	42,	43,	44,	45,	46,	47,	
		48,	49,	50,	51,	52,	53,	54,	55,	56,	57,	58,	59,	60,	61,	62,	63,	
		64,	65,	66,	67,	68,	69,	70,	71,	72,	73,	74,	75,	76,	77,	78,	79,	
		80,	81,	82,	83,	84,	85,	86,	87,	88,	89,	90,	91,	92,	93,	94,	95,	
		96,	97,	98,	99,	100,	101,	102,	103,	104,	105,	106,	107,	108,	109,	110,	111,	
		112,	113,	114,	115,	116,	117,	118,	119,	120,	121,	122,	123,	124,	125,	126,	127,			
		128,	129,	130,	131,	132,	133,	134,	135,	136,	137,	138,	139,	140,	141,	142,	143,			
		144,	145,	146,	147,	148,	149,	150,	151,	152,	153,	154,	155,	156,	157,	158,	159,			
		160,	161,	162,	163,	164,	165,	166,	167,	168,	169,	170,	171,	172,	173,	174,	175,			
		176,	177,	178,	179,	180,	181,	182,	183,	184,	185,	186,	187,	188,	189,	190,	191,			
		192,	193,	194,	195,	196,	197,	198,	199,	200,	201,	202,	203,	204,	205,	206,	207,		
		208,	209,	210,	211,	212,	213,	214,	215,	216,	217,	218,	219,	220,	221,	222,	223,			
		224,	225,	226,	227,	228,	229,	230,	231,	232,	233,	234,	235,	236,	237,	238,	239,			
		240,	241,	242,	243,	244,	245,	246,	247,	248,	249,	250,	251,	252,	253,	254,	255,
	}, //3
	{
		0,	0,	1,	1,	2,	2,	3,	4,	4,	5,	5,	6,	7,	7,	8,	8,	
		9,	10,	10,	11,	11,	12,	13,	13,	14,	15,	15,	16,	17,	17,	18,	19,	
		19,	20,	21,	21,	22,	23,	24,	24,	25,	26,	27,	27,	28,	29,	30,	31,	
		31,	32,	33,	34,	35,	36,	37,	38,	39,	40,	40,	41,	42,	43,	44,	45,	
		46,	47,	48,	50,	51,	52,	53,	54,	55,	56,	57,	58,	60,	61,	62,	63,	
		64,	65,	67,	68,	69,	70,	71,	73,	74,	75,	76,	78,	79,	80,	82,	83,	
		84,	85,	87,	88,	89,	91,	92,	93,	95,	96,	97,	99,	100,	101,	103,	104,	
		106,	107,	108,	110,	111,	112,	114,	115,	116,	118,	119,	121,	122,	123,	125,	126,	
		128,	129,	130,	132,	133,	134,	136,	137,	138,	140,	141,	143,	144,	145,	147,	148,	
		149,	151,	152,	153,	155,	156,	157,	159,	160,	161,	163,	164,	165,	167,	168,	169,	
		170,	172,	173,	174,	176,	177,	178,	179,	181,	182,	183,	184,	185,	187,	188,	189,	
		190,	191,	192,	194,	195,	196,	197,	198,	199,	200,	201,	202,	204,	205,	206,	207,	
		208,	209,	210,	211,	212,	213,	214,	215,	216,	216,	217,	218,	219,	220,	221,	222,	
		223,	223,	224,	225,	226,	227,	227,	228,	229,	230,	230,	231,	232,	233,	233,	234,	
		235,	236,	236,	237,	238,	238,	239,	240,	240,	241,	242,	242,	243,	244,	244,	245,	
		245,	246,	247,	247,	248,	248,	249,	250,	250,	251,	251,	252,	253,	253,	254,	255,	
	}, //4
	{
		0,	0,	0,	1,	1,	2,	2,	2,	3,	3,	4,	4,	5,	5,	6,	6,	
		6,	7,	7,	8,	8,	9,	9,	10,	10,	11,	11,	12,	12,	13,	13,	14,	
		15,	15,	16,	16,	17,	18,	18,	19,	20,	20,	21,	22,	22,	23,	24,	24,	
		25,	26,	27,	28,	28,	29,	30,	31,	32,	33,	34,	35,	36,	36,	37,	38,	
		39,	40,	42,	43,	44,	45,	46,	47,	48,	49,	51,	52,	53,	54,	55,	57,	
		58,	59,	60,	62,	63,	64,	66,	67,	68,	70,	71,	72,	74,	75,	77,	78,	
		79,	81,	82,	84,	85,	87,	88,	89,	91,	92,	94,	95,	97,	98,	100,	101,	
		103,	104,	106,	108,	109,	111,	112,	114,	115,	117,	118,	120,	121,	123,	124,	126,	
		128,	129,	131,	132,	134,	135,	137,	138,	140,	141,	143,	144,	146,	147,	149,	150,	
		152,	153,	155,	156,	158,	159,	161,	162,	164,	165,	167,	168,	170,	171,	172,	174,	
		175,	177,	178,	179,	181,	182,	184,	185,	186,	188,	189,	190,	191,	193,	194,	195,	
		196,	198,	199,	200,	201,	203,	204,	205,	206,	207,	208,	209,	210,	212,	213,	214,	
		215,	216,	217,	218,	219,	220,	220,	221,	222,	223,	224,	225,	226,	226,	227,	228,	
		229,	230,	230,	231,	232,	232,	233,	234,	234,	235,	236,	236,	237,	238,	238,	239,	
		239,	240,	241,	241,	242,	242,	243,	243,	244,	244,	245,	245,	246,	246,	247,	247,	
		248,	248,	249,	249,	250,	250,	251,	251,	251,	252,	252,	253,	253,	254,	254,	255,	
	}, //5
	{
		0,	0,	0,	0,	1,	1,	1,	1,	2,	2,	2,	2,	3,	3,	3,	3,	
		4,	4,	4,	5,	5,	5,	6,	6,	6,	7,	7,	7,	8,	8,	9,	9,	
		10,	10,	10,	11,	11,	12,	12,	13,	13,	14,	15,	15,	16,	16,	17,	18,	
		18,	19,	20,	20,	21,	22,	23,	23,	24,	25,	26,	27,	28,	29,	30,	31,	
		32,	33,	34,	35,	36,	37,	38,	39,	40,	41,	43,	44,	45,	46,	48,	49,	
		50,	52,	53,	54,	56,	57,	59,	60,	61,	63,	64,	66,	67,	69,	70,	72,	
		73,	75,	77,	78,	80,	81,	83,	85,	86,	88,	90,	91,	93,	95,	96,	98,	
		100,	101,	103,	105,	107,	108,	110,	112,	114,	115,	117,	119,	120,	122,	124,	126,	
		128,	129,	131,	133,	135,	136,	138,	140,	141,	143,	145,	147,	148,	150,	152,	154,	
		155,	157,	159,	160,	162,	164,	165,	167,	169,	170,	172,	174,	175,	177,	178,	180,	
		182,	183,	185,	186,	188,	189,	191,	192,	194,	195,	197,	198,	199,	201,	202,	203,	
		205,	206,	207,	209,	210,	211,	212,	214,	215,	216,	217,	218,	219,	220,	221,	222,	
		224,	224,	225,	226,	227,	228,	229,	230,	231,	232,	232,	233,	234,	235,	235,	236,	
		237,	237,	238,	238,	239,	240,	240,	241,	241,	242,	242,	243,	243,	244,	244,	245,	
		245,	246,	246,	246,	247,	247,	247,	248,	248,	249,	249,	249,	249,	250,	250,	250,	
		251,	251,	251,	251,	252,	252,	252,	253,	253,	253,	253,	254,	254,	254,	254,	255,	
	}, //6
#if 0
	//thermo
	{0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,0		,
	0	,0		,0		,0		,0		,0		,0		,20		,
	20	,20		,20		,40		,40		,40		,40		,60		,
	60	,60	,60	,80	,80	,80	,80	,100	,
	100	,100	,100	,120	,120	,120	,120	,140	,
	140	,140	,140	,160	,160	,160	,160	,180	,
	180	,180	,180	,200	,200	,200	,200	,220	,
	220	,220	,220	,240	,240	,240	,240	,250	,
	250	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	,
	255	,255	,255	,255	,255	,255	,255	,255	
	}, 	//R - 7
	{6	,6		,6		,6		,18		,18		,18		,18		,
	30	,30		,30		,30		,43		,43		,43		,43		,
	56	,56		,56		,56		,70		,70		,70		,70		,
	83	,83		,83		,83		,97		,97		,97		,97		,
	110	,110		,110		,110		,123		,123		,123		,123		,
	137	,137		,137		,137		,150		,150		,150		,150		,
	163	,163		,163		,163		,177		,177		,177		,177		,
	190	,190		,190		,190		,203		,203		,203		,203		,
	216	,216		,216		,216		,230		,230		,230		,230		,
	243	,243		,243		,243		,250		,250		,255		,255		,
	255	,255		,255		,255		,255		,255		,255		,255		,
	255	,255		,255		,255		,255		,255		,255		,255		,
	255	,255		,255		,255		,255		,255		,255		,250		,
	250	,243		,243		,243		,243		,230		,230		,230		,
	230	,216		,216		,203		,203		,203		,203		,190		,
	190	,190		,190		,177		,177		,177		,177		,163		,
	163	,163	,163	,150	,150	,150	,150	,137	,
	137	,137	,137	,123	,123	,123	,123	,110	,
	110	,110	,110	,97	,97	,97	,97	,83	,
	83	,83	,83	,70	,70	,70	,70	,56	,
	56	,56	,56	,43	,43	,43	,43	,30	,
	30	,30	,30	,18	,18	,18	,18	,6	,
	6	,6	,6	,0	,0	,0	,0	,0	,
	0	,0	,0	,0	,0	,0	,0	,0	,
	0	,0	,0	,0	,0	,0	,0	,0	,
	0	,0	,0	,0	,0	,0	,0	,0	,
	0	,0	,0	,0	,0	,0	,0	,0	,
	0	,0	,0	,0	,0	,0	,0	,0	,
	0	,0	,0	,0	,0	,0	,30	,30	,
	30	,30	,60	,60	,90	,90	,90	,90	,
	120	,120	,150	,150	,150	,150	,180	,180	,
	200	,200	,200	,200	,230	,230	,255	,255
	}, 	//G - 8	
	{
	 255	,255		,255		,255		,243		,243		,233		,233		,
	 233		,233		,220		,220		,220		,220		,207		,207		,
	 207		,207		,193		,193		,193		,193		,180		,180		,
	 180		,180		,167		,167		,167		,167		,153		,153		,
	 153		,153		,140		,140		,140		,140		,127		,127		,
	 127		,127		,113		,113		,113		,113		,100		,100		,
	 100		,100		,87		,87		,87		,87		,73		,73		,
	 73		,73		,60		,60		,60		,60		,46		,46		,
	 46		,46		,34		,34		,34		,34		,22		,22		,
	 22		,22		,10		,10		,10		,10		,0		,0		,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,0	,0	,0	,0	,0	,0	,
	 0	,0	,10	,10	,10	,10	,22	,22	,
	 22	,22	,30	,30	,30	,30	,40	,40	,
	 53	,53	,53	,53	,63	,63	,63	,63	,
	 73	,73	,83	,83	,83	,83	,93	,93	,
	 103	,103	,103	,103	,113	,113	,123	,123	,
	 133	,133	,133	,133	,143	,143	,153	,153	,
	 153	,153	,163	,163	,163	,163	,173	,173	,
	 183	,183	,183	,183	,193	,193	,203	,203	,
	 203	,203	,213	,213	,223	,223	,223	,223	,
	 230	,230	,243	,243	,243 ,243	,255	,255
	} 	//B - 9	
#else
	//thermo_re
	{
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	5,	11,	16,	21,	
	27,	32,	38,	44,	49,	55,	61,	67,	74,	80,	86,	92,	99,	105,	111,	118,	
	124,	130,	137,	143,	149,	156,	162,	168,	175,	181,	187,	193,	199,	205,	211,	216,	
	222,	228,	233,	238,	243,	249,	254,	255,	255,	255,	255,	255,	255,	255,	255,	255,	
	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	
	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	
	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	
	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	
	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	
	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	
	},	//R_re 7
	//thermo_re
	{
	0,	4,	8,	12,	17,	21,	25,	29,	34,	38,	42,	46,	51,	55,	59,	63,	
	67,	71,	75,	80,	84,	88,	92,	96,	100,	104,	108,	112,	115,	119,	123,	127,	
	131,	134,	138,	142,	145,	149,	153,	156,	160,	163,	166,	170,	173,	176,	179,	183,	
	186,	189,	192,	195,	198,	200,	203,	206,	209,	211,	214,	216,	219,	221,	224,	226,	
	228,	230,	232,	234,	236,	238,	240,	242,	243,	245,	246,	248,	249,	250,	251,	252,	
	254,	254,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	255,	
	255,	255,	255,	255,	254,	252,	251,	250,	248,	246,	245,	243,	241,	239,	236,	234,	
	232,	229,	227,	224,	221,	218,	215,	212,	209,	206,	203,	199,	196,	193,	189,	186,	
	182,	178,	175,	171,	167,	163,	159,	155,	152,	148,	144,	140,	135,	131,	127,	123,	
	119,	115,	111,	107,	103,	99,	94,	90,	86,	82,	78,	74,	70,	66,	62,	58,	
	54,	50,	47,	43,	39,	35,	32,	28,	25,	21,	18,	14,	11,	8,	5,	2,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	1,	5,	10,	15,	
	20,	25,	31,	37,	43,	49,	55,	62,	68,	75,	82,	90,	97,	104,	112,	120,	
	128,	136,	144,	152,	160,	168,	177,	185,	194,	202,	211,	220,	228,	237,	246,	255,	
	},	//G_re 8
	{
	255,	250,	246,	242,	238,	234,	230,	226,	222,	219,	215,	211,	207,	203,	199,	195,	
	192,	188,	184,	180,	176,	173,	169,	165,	161,	158,	154,	150,	147,	143,	139,	136,	
	132,	129,	125,	121,	118,	114,	111,	107,	104,	101,	97,	94,	91,	87,	84,	81,	
	77,	74,	71,	68,	65,	62,	59,	56,	53,	50,	47,	44,	41,	38,	35,	33,	
	30,	27,	25,	22,	19,	17,	14,	12,	10,	7,	5,	3,	1,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	1,	3,	5,	8,	11,	13,	16,	19,	22,	25,	27,	
	30,	33,	36,	40,	43,	46,	49,	52,	55,	59,	62,	65,	69,	72,	75,	79,	
	82,	86,	89,	92,	96,	99,	103,	106,	110,	113,	117,	120,	124,	127,	131,	134,	
	137,	141,	144,	148,	151,	154,	158,	161,	164,	167,	171,	174,	177,	180,	183,	186,	
	189,	192,	195,	198,	201,	204,	207,	209,	212,	214,	217,	219,	222,	224,	227,	229,	
	231,	233,	235,	237,	239,	241,	242,	244,	246,	247,	249,	250,	251,	252,	254,	255,	
	},	//B_re 9
#endif	
	//ir_chroma : green luma diff
	{
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	},	//ir red 10
	{
	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	
	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	
	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	
	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	
	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	64,	
	80,	81,	82,	83,	84,	85,	86,	87,	88,	89,	90,	91,	92,	93,	94,	95,	
	96,	97,	98,	99,	100,	101,	102,	103,	104,	105,	106,	107,	108,	109,	110,	111,	
	112,	113,	114,	115,	116,	117,	118,	119,	120,	121,	122,	123,	124,	125,	126,	127,		
	128,	129,	130,	131,	132,	133,	134,	135,	136,	137,	138,	139,	140,	141,	142,	143,		
	144,	145,	146,	147,	148,	149,	150,	151,	152,	153,	154,	155,	156,	157,	158,	159,	
	160,	161,	162,	163,	164,	165,	166,	167,	168,	169,	170,	171,	172,	173,	174,	175,			
	176,	177,	178,	179,	180,	181,	182,	183,	184,	185,	186,	187,	188,	189,	190,	191,		
	192,	193,	194,	195,	196,	197,	198,	199,	200,	201,	202,	203,	204,	205,	206,	207,		
	208,	209,	210,	211,	212,	213,	214,	215,	216,	217,	218,	219,	220,	221,	222,	223,		
	224,	225,	226,	227,	228,	229,	230,	231,	232,	233,	234,	235,	236,	237,	238,	239,		
	240,	241,	242,	243,	244,	245,	246,	247,	248,	249,	250,	251,	252,	253,	254,	255,	
	},	//ir green 11
	{
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	}	//ir blue 12
/*	//ir_chroma : green & cyon
	{
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	},	//ir red 10
	{
	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	
	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	
	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	
	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	
	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	
	80,	81,	82,	83,	84,	85,	86,	87,	88,	89,	90,	91,	92,	93,	94,	95,	
	96,	97,	98,	99,	100,	101,	102,	103,	104,	105,	106,	107,	108,	109,	110,	111,	
	112,	113,	114,	115,	116,	117,	118,	119,	120,	121,	122,	123,	124,	125,	126,	127,	
	128,	129,	130,	131,	132,	133,	134,	135,	136,	137,	138,	139,	140,	141,	142,	143,		
	144,	145,	146,	147,	148,	149,	150,	151,	152,	153,	154,	155,	156,	157,	158,	159,	
	160,	161,	162,	163,	164,	165,	166,	167,	168,	169,	170,	171,	172,	173,	174,	175,			
	176,	177,	178,	179,	180,	181,	182,	183,	184,	185,	186,	187,	188,	189,	190,	191,		
	192,	193,	194,	195,	196,	197,	198,	199,	200,	201,	202,	203,	204,	205,	206,	207,		
	208,	209,	210,	211,	212,	213,	214,	215,	216,	217,	218,	219,	220,	221,	222,	223,	
	224,	225,	226,	227,	228,	229,	230,	231,	232,	233,	234,	235,	236,	237,	238,	239,		
	240,	241,	242,	243,	244,	245,	246,	247,	248,	249,	250,	251,	252,	253,	254,	255,		
	},	//ir green 11
	{
	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	
	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	
	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	
	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	
	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	
	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	
	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	
	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	235,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	
	}	//ir blue 12
*/
};

#endif

/*  FILE_END_HERE */
